I've got a directory


where x is a variety

Can there be in whatever way I'm able to redirect the consumer with mod_rewrite to a different page regardless of what the amount or extension is?

I attempted this

RewriteRule ^$ /profilepics/(.*)$ [L]

but that didnt work on all.

Sorry if I have misinterpreted however i think this is exactly what you are after:

RewriteRule ^profilepics/(.*)$ page_to_redirect_to.php?url=$1 [L]

The above mentioned example will redirect any request mydomain.com/profilepics/* onto page_to_redirect_to.php


I have up-to-date the code to pass through negligence the URL after profilepics/ to the page inside a GET var known as url...just just in case you should know how that's done.