Dragen Posted October 24, 2009 Share Posted October 24, 2009 Hi, I've been working on a site on my local server and have had it working with no problems, but after uploading it to their server it's throwing a fuss over my htaccess. I've get a re-direct set up to change a url like this: mydomain.co.uk/account/ to this: mydomain.co.uk/ac/index.php And another which does this: mydomain.co.uk/account/items/ to: mydomain.co.uk/ac/items.php here is the code I'm using: RewriteRule ^account/?$ /ac/index.php?%{QUERY_STRING} [NC] RewriteRule ^account/([a-z\-\ ]+)((/([a-z\-\ ]+)/?)|/?)$ /ac/$1.php?action=$4&%{QUERY_STRING} [NC] As said, on my local server it works fine, however on the live server the second one works fine, but not the first; I get a 404 not found. Has anyone got any ideas why this would be happening? It just doesn't seem to be picking it up for some reason and the client's website is supposed to be going live today! Kind regards, Lee Link to comment https://forums.phpfreaks.com/topic/178849-one-re-write-not-working-but-the-other-is/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.