...

View Full Version : .htaccess



WebmasterLULZ
09-30-2008, 01:06 AM
I want to do a .htaccess with redirect.

I want
http://www.mysite.com/Song*ANY RANDOM NUMBER HERE*.mp3

to redirect to
http://www.mysite.com/downloader.php

So for example ,if I do
http://www.mysite.com/Song809.mp3

OR
http://www.mysite.com/Song212121.mp3

it will take me to
http://www.mysite.com/downloader.php

Fou-Lu
09-30-2008, 09:35 PM
Google it up for mod_rewrite, assuming you're on apache. You'll be looking for something like ^Song\d+.mp3 and writing it to download.php?id=\\1.

mbannonb
10-10-2008, 01:18 AM
I want to do a .htaccess with redirect.

I want
http://www.mysite.com/Song*ANY RANDOM NUMBER HERE*.mp3

to redirect to
http://www.mysite.com/downloader.php

So for example ,if I do
http://www.mysite.com/Song809.mp3

OR
http://www.mysite.com/Song212121.mp3

it will take me to
http://www.mysite.com/downloader.php

This has a good tut: http://corz.org/serv/tricks/htaccess2.php



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum