Forum Moderators: phranque
I was wondering if you could make direct access to a link impossible.
What I want to do is if you access index.php?act=test directly to be redirected to index/act/test .
If I do that with RewriteRule when you get redirected to index/act/test you'll go in an endless cycle. I'm aware of RewriteCond but I'm not quite sure how to use it in this case.
Any ideas ?
Thanks in advance,
tftd
If so, then the key is to use a RewriteCond to examine the client request header %{THE_REQUEST} and do the redirect only if the dynamic URL is being directly-requested by the client, and not as the result of a previously-executed internal rewrite.
Lots more details here [webmasterworld.com]:
Jim