How to enable mod_rewrite without using httpd.conf file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sunil_23413
Forum Newbie
Posts: 10
Joined: Thu Mar 12, 2009 5:43 am

How to enable mod_rewrite without using httpd.conf file

Post by sunil_23413 »

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?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: How to enable mod_rewrite without using httpd.conf file

Post by jayshields »

You can't.
Post Reply