.htaccess refusing to work
Posted by: SgtLegend (---.static.tpgi.com.au)
Date: August 13, 2010 10:09AM

Hi to all,

I've been using WAMP for ages now and just started working my way into mod_rewrite which I've got enabled but for whatever reason it refuses to work, I've searched Google up and down and everything I've found works for the person who makes the tutorial and uses WAMP but not for me and i follow them word for word and to the T.

My .htaccess file sits in c:/wamp/www/ and it uses the following code


Options +FollowSymLinks
RewriteEngine on

RewriteRule ^index/([A-Za-z0-9-]+)/?$ index.php?sid=$1 [NC,L]


I'm basically going nuts trying to work this out because i really want to test my URL rewrites on my localhost before i go live with them. In case your confused my problem is the URL doesn't change no matter what i add to the .htaccess file

Thanks in advance

Edited 1 time(s). Last edit at 08/13/2010 10:15AM by SgtLegend.

Re: .htaccess refusing to work
Posted by: stevenmartin99 (---.251.255.14.threembb.ie)
Date: August 13, 2010 11:02AM

Did u enable it on the menu?

Steven Martin
PampServer.com - [pampserver.com]

Re: .htaccess refusing to work
Posted by: SgtLegend (---.static.tpgi.com.au)
Date: August 13, 2010 11:16AM

Yes, I've also made sure AllowOverride is set to All yet it refuses to change the URL

Re: .htaccess refusing to work
Posted by: c2dan (---.pool.cable.virginmedia.com)
Date: August 13, 2010 05:51PM

mod_rewrite will not change your current urls to the new format for you. You'll need to edit your files and manually change the urls to the new url format. Eg change
<a href="index.php?sid=whatever">Whatever</a>
<a href="/index/whatever/">Whatever</a>
You can test the url by going to

localhost/index/whatever/ and it should call index.php?sid=whatever

Re: .htaccess refusing to work
Posted by: SgtLegend (---.static.tpgi.com.au)
Date: August 14, 2010 10:33AM

Thanks, all this time i thought it re-wrote the URL but i thought wrong. Your answer was spot on bud, thanks very much

Edited 2 time(s). Last edit at 08/14/2010 11:02AM by SgtLegend.

Sorry, only registered users may post in this forum.