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
https://forums.phpfreaks.com/topic/128974-apache-mod-rewrite-in-windows/
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 !

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?

 

 

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.