|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
mod_rewrite help nearly done
Ok...
I have this so far: RewriteRule ^([0-9]+)(.+)$ http://www.boysfood.com/cgi-bin/file.cgi?$1 [L,NC] and that lets me load http://www.boysfood.com/cgi-bin/file.cgi?vid.wmv with this url http://www.boysfood.com/vid.wmv But I want it like http://www.boysfood.com/videos/vid.wmv Any help please. thanks |
|
#2
|
||||
|
||||
|
for http://www.boysfood.com/cgi-bin/file.cgi?vid.wmv,
is 'vid' the only thing that is going to change? or is 'file' going to change too? RewriteRule videos/(.*)\.wmv$ /cgi-bin/file.cgi?$1.wmv should work for http://www.boysfood.com/videos/vid.wmv if 'vid' and 'file' are going to be different every time, you'll need to add another variable. |
|
#3
|
||||
|
||||
|
Thanks alot it worked great, but everything after file.cgi? changes to.
Thanks |
|
#4
|
||||
|
||||
|
Quote:
changes to what? |
|
#5
|
||||
|
||||
|
e.g:
file.cgi?hello.jpg file.cgi?mushrooms.exe file.cgi?warez.rar etc.. thanks! |
|
#6
|
||||
|
||||
|
RewriteRule videos/(.*)\.(.*)$ /cgi-bin/file.cgi?$1.$2
Someone correct me if I'm wrong? ![]()
__________________
360 Web Directory - Submit your site for free! Just recip. link required! Link Exchange with PR 5 for all click here How to Utilize your PR5 and above pages (Free Logo Design). Check This Out |
|
#7
|
||||
|
||||
|
RewriteRule videos/([^\. ^/]+\..*)$ /cgi-bin/file.cgi?$1
this will make it so that http://www.boysfood.com/videos/*.* will work (has to have a (.) and be after (videos/) ) but http://www.boysfood.com/videos/some_other_dir/ or http://www.boysfood.com/videos/some_other_dir/*.* wont work |
|
#8
|
||||
|
||||
|
w00ter it worked, Thankls
![]() |
|
#9
|
||||
|
||||
|
Bit more, tried myself but kept getting a loop.
Turn http://www.freeinternetproxy.com/index.php?url=URLHERE To: http://www.freeinternetproxy.com/URLHERE Thanks |
![]() |
| Viewing: SEO Chat Forums > Other > SEO Scripts > mod_rewrite help nearly done |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|