B34ST Posted June 12, 2007 Share Posted June 12, 2007 hi i recently found that i can use mod rewrite on my paid domain simply by editing the .htaccess and can get this to work but i have a problem when it comes to using it on my localhost I have tried to do the following: uncomment the line LoadModule rewrite_module modules/mod_rewrite.so in httpd.conf then adding a new .htaccess file in a test folder with a test script that has a $_GET function in the .htaccess file i added: RewriteEngine On RewriteRule ^r/([^/]*)\.html$ /test/test.php?r=$1 [L] therefore if i goto http://localhost/r/true.html it should be the same as http://localhost/test/test.php?r=true but instead i get 404:not found I read somewhere that i should also make sure the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out. but i do not seem to have these lines in my httpd.conf file. Can anyone help me to get this to work? Quote Link to comment Share on other sites More sharing options...
B34ST Posted June 12, 2007 Author Share Posted June 12, 2007 I have just found the answer. Here it is for anyone that is interested: aswell as what I have explained above I had to find the line: AllowOverride None and change it to: AllowOverride ALL now mod_rewrite works fine. Thanks for your time anyway Quote Link to comment 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.