Wondering if anyone can help me, what i want to do is redirect all traffic on mirror.mysite.com/* to mirror.mysite.com/index.php?path=*
So like
mirror.mysite.com/test/file1.zip, would become
mirror.mysite.com/index.php?path=test/file.zip
What I want to do is have a php script which checks againinst a DB for the string I entered as path, which would then redirect to my download site (rapidshare, mediafire, filesend.. ect ect)
If possible I'd like it to not actualy redirect to the index.php before it redirects to the other site.
Im thinking of something like
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([a-zA-Z0-9. //]+)/?$ /index.php?path=$1 [QSA,L]
But im not sure on the other paramaters and stuff.