AdRock Posted July 17, 2007 Share Posted July 17, 2007 I have been having troubles getting mod rewrite to enable using Apache 1.3 I have done some searching around forums and other websites and they say to check these thing which I have done Uncomment this line LoadModule rewrite_module modules/mod_rewrite.so and also as it says in the httpd.conf file i uncommented this line AddModule mod_rewrite.c I have also chnaged this <Directory /> Options FollowSymLinks AllowOverride All </Directory> and as suggested here http://datakoncepts.com/seo (under test) i created 3 files, test.php, test.html and a .htaccess file but i renamed the test file to index so i can put them in my htdocs directory. HTML: <h2>This is the HTML file.</h2> PHP: <h2>This is the PHP file.</h2> .HTACCESS RewriteEngine on RewriteRule ^/?index\.html$ index.php [L] # RewriteRule tests for matches with the {REQUEST_URI} string When I open localhost all that is diaplyed is "This is the HTML file." which I presume means mod rewrite isn't enabled 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.