playaz Posted July 15, 2009 Share Posted July 15, 2009 Hi guys, Can anyone explain how I enable mod rewrite on a live site using the php.ini? I do not have access to the httpd.conf file otherwise I would enable this via Apache. Any help would be gladly appreciated. Kind Regards, Gavin Link to comment https://forums.phpfreaks.com/topic/166040-enabling-mod-rewrite-without-access-to-the-httpdconf-file/ Share on other sites More sharing options...
trq Posted July 15, 2009 Share Posted July 15, 2009 mod_rewrite has nothing to do with php, hence, needs to be enabled within apache's configuration. If your site is hosted on apache, chances are good that mod_rewrite is installed and ready. You can place local rules within a .htaccess file within the directory you wish to effect. Link to comment https://forums.phpfreaks.com/topic/166040-enabling-mod-rewrite-without-access-to-the-httpdconf-file/#findComment-875663 Share on other sites More sharing options...
playaz Posted July 15, 2009 Author Share Posted July 15, 2009 Hi Thorpe, My PHP site is hosted on Apache, I have created a phpinfo() file and uploaded it to see the server configuration, I can't see anything related to mod_rewrite in there when I view the phpinfo file - would I be right in presuming mod_rewrite is not installed and that I can only get this setup by contacting my host and asking them to enable this? Thanks again for your help Link to comment https://forums.phpfreaks.com/topic/166040-enabling-mod-rewrite-without-access-to-the-httpdconf-file/#findComment-875674 Share on other sites More sharing options...
phporcaffeine Posted July 15, 2009 Share Posted July 15, 2009 Again, as mentioned ... mod_rewrite has NOTHING to do with PHP (it is an Apache module) and therefore will not be displayed in the phpinfo(); Link to comment https://forums.phpfreaks.com/topic/166040-enabling-mod-rewrite-without-access-to-the-httpdconf-file/#findComment-875677 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.