Check URL?

Hello,

I was wondering if it were possible to check if a particular folder was being viewed with htaccess. For example, is there a way I could add a condition that if the URL is on /images, I can redirect the user?

Thanks,
Eric

Hi,
Try look on the net for “htaccess redirect” , you’ll find some useful articles.

All right, I will search on Google.

I am extremely new at this. :stuck_out_tongue:

Thank you.

Of course you can, that’s the whole point of mod_rewrite :wink:


RewriteEngine On

RewriteRule ^images path/to/somewhere/else [L]

If you want it to be an permanent redirect, change [L] to [L,R=301]