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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.