phphtml.htaccessclean-url

. htaccess not working in server


Hi My web server is Apache.I have created a sample application in my local system. It's working fine with the clean url. But when i uploaded to my Web server( Apache) it's not working. Is there is any settings in Apache? If yes what are the steps? How can I check is mod_rewrite is enable in my Apache server? is it any way to know "mod_rewrite is on " through any PHP coding?

Thanks in advance


Solution

  • Is there any way to know "mod_rewrite is on " through any PHP coding?

    Yes, create a php page with <?php phpinfo(); ?>. This lists your server configuration. Under the apache2handler section in "Loaded Modules" you should see mod_rewrite if it is installed.

    If it isn't listed there you will either need to ask your host or if you have access, see the apache modules-enabled folder (eg in /etc/apache2 on a standard installation) to see if there is a mod_rewrite listed.