How to enable mod_rewrite without using httpd.conf file

Discussion in 'PHP' started by sunil_23413, Jun 18, 2009.

  1. #1
    I am working in a php project. I enabled mod_rewrite nodule from the httpd.conf file. I go to apache -> conf-> httpd.conf and uncommented the #LoadModule rewrite_module modules/mod_rewrite.so this and mod_rewrite module was enabled successfully. I checked it using phpinfo function.

    Now I uploaded the same project to live server .but I don’t have permissions to enter in conf folder. So cannot edit httpd.conf file to enable mod_rewrite module. How can I enable mod_rewrite module using php.ini or htaccess file or using some php coding?
     
    sunil_23413, Jun 18, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    RewriteEngine On

    use that in .htaccess
     
    Bohra, Jun 18, 2009 IP