pneudralics Posted April 30, 2009 Share Posted April 30, 2009 I've enabled it in the apache module. Check phpinfo() and it's there. I've done this.. # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # I still can't get it to rewrite Options +FollowSymLinks RewriteEngine On RewriteRule ^home\.php$ index.php The way I'm getting to index.php is a link on the page or typing it manually in the url. Restarted wamp several times. Quote Link to comment https://forums.phpfreaks.com/topic/156228-anyone-having-issue-with-mod_rewrite-for-wampserver/ Share on other sites More sharing options...
Mchl Posted April 30, 2009 Share Posted April 30, 2009 What error do you get? If its 500, the something's wrong with configuration. If it's 404, then something's wrong with your RewriteRule Quote Link to comment https://forums.phpfreaks.com/topic/156228-anyone-having-issue-with-mod_rewrite-for-wampserver/#findComment-822475 Share on other sites More sharing options...
pneudralics Posted April 30, 2009 Author Share Posted April 30, 2009 I'm not getting any errors. It's just not rewriting. Quote Link to comment https://forums.phpfreaks.com/topic/156228-anyone-having-issue-with-mod_rewrite-for-wampserver/#findComment-822679 Share on other sites More sharing options...
wildteen88 Posted April 30, 2009 Share Posted April 30, 2009 Where have you placed this code Options +FollowSymLinks RewriteEngine On RewriteRule ^home\.php$ index.php You should of placed it within a .htaccess file (thats the exact name) which should be located into root of WAMP's www folder (eg C:/wamp/www). You do not need to restart Apache each time you modify the .htaccess file, as it is read on every http request to the server. You only need to restart Apache if you make changes to the main configuration file(s). Quote Link to comment https://forums.phpfreaks.com/topic/156228-anyone-having-issue-with-mod_rewrite-for-wampserver/#findComment-822828 Share on other sites More sharing options...
zainul.dss Posted June 15, 2010 Share Posted June 15, 2010 I have placed all those thing in .htaccess file still not able to url rewrite on wamp server. any one pls suggest Quote Link to comment https://forums.phpfreaks.com/topic/156228-anyone-having-issue-with-mod_rewrite-for-wampserver/#findComment-1072279 Share on other sites More sharing options...
cags Posted June 18, 2010 Share Posted June 18, 2010 Just to confirm, you are testing this by using the URL http://localhost/home.php correct? If you aren't, you should be because that rule will take requests for home.php and display index.php. If you are and it's not working, the rewrite pattern should probably be... RewriteRule ^home\.php$ /index.php Though this should cause a 404 error as mentioned previously. Is Wampserver perhaps not set-up to throw proper errors? Quote Link to comment https://forums.phpfreaks.com/topic/156228-anyone-having-issue-with-mod_rewrite-for-wampserver/#findComment-1074029 Share on other sites More sharing options...
Mchl Posted June 18, 2010 Share Posted June 18, 2010 Though this should cause a 404 error as mentioned previously. Is Wampserver perhaps not set-up to throw proper errors? With default settings it has always worked as expected for me. Quote Link to comment https://forums.phpfreaks.com/topic/156228-anyone-having-issue-with-mod_rewrite-for-wampserver/#findComment-1074053 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.