Jump to content

Apache Mod Rewrite in Windows


leony

Recommended Posts

Hello,

 

My mod rewrite works on my web hosting company but I cannot get it work in Windows XP. How do I need to configure the Apache config file?

 

I searched the web but not found much info, some solutions did not work.

 

My document root is drive F which is

 

F:/websites

 

(If you wanted to give example code, you can use

F:/websites)

 

Thanks....

Link to comment
Share on other sites

Go to your Apache installation folder, then go /conf folder.

There you will see httpd.conf file. Open it using Notepad.

Find this line:

#LoadModule rewrite_module modules/mod_rewrite.so

Just delete commenting character (#) so line should look like this:

LoadModule rewrite_module modules/mod_rewrite.so

 

Restart your Apache and you are done !

Link to comment
Share on other sites

Hi

 

I have uncommented these two but it is still not working:

 

LoadModule rewrite_module modules/ApacheModuleRewrite.dll

LoadModule rewrite_module modules/mod_rewrite.so

 

Do I have to do anything else?

 

Note: My Apache files are on C drive and websites files are on F drive. Document root is F:/....

 

Can this be the problem?

 

 

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.