0

I need to redirect all /eula traffic to /tos

RewriteRule ^/eula/$ /tos [R=301,NC]

but this rule doesnt seem to work -- mostly because the basepath is being treated as the root when really theres another parent directory; what's happening with the above rule is >

/my/docs/eula -> /tos

which is not right, it should be doing this >

/my/docs/eula -> /my/docs/tos

How do I write the rule for this, without having to specify what the parent dir is?

1 Answer 1

1

RewriteRule ^(.*)/eula$ $1/tos [R=301,NC]

1
  • i did just that! =/ and it didnt work which is why this is driving me crazy. What about /eula/ its a directory... dunno it looks like it's adding the back slash, so maybe the rule isnt being processed in the right order
    – qodeninja
    Dec 29, 2010 at 20:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .