Jump to content

one re-write not working, but the other is??


Dragen

Recommended Posts

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