Jump to content

How to enable mod rewrite in Apache 1.3


AdRock

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/60375-how-to-enable-mod-rewrite-in-apache-13/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.