Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Why can't I rewrite this url using mod_rewrite? I have included the mod rewrite rule.
Old 08-25-2007, 03:21 PM Why can't I rewrite this url using mod_rewrite? I have included the mod rewrite rule.
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
HELP ME WITH THIS
MOD REWRITE

Here is my mod_rewrite why can't I get this to work? Can someone show me the solution?
Code:
RewriteRule ^watch(.*).swf FLVPlayer_Progressive.swf?MM_ComponentVersion=1&skinName=Halo_Skin_3&autoPlay=true&autoRewind=true&streamName=http://www.technologyforever.com/secret/$1.flv
It is supposed to rewrite this FLVPlayer_Progressive.swf?MM_ComponentVersion=1&sk inName=Halo_Skin_3&autoPlay=true&autoRewind=true&s treamName=http://www.technologyforever.com/secret/$1.flv to watch(.*).swf

forexample watch1.swf = FLVPlayer_Progressive.swf?MM_ComponentVersion=1&sk inName=Halo_Skin_3&autoPlay=true&autoRewind=true&s treamName=http://www.technologyforever.com/secret/1.flv
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Last edited by goheadtry; 08-25-2007 at 03:23 PM..
goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
 
Register now for full access!
Old 08-25-2007, 06:22 PM Re: Why can't I rewrite this url using mod_rewrite? I have included the mod rewrite r
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I'm not entirely following what you're trying to rewrite to what. Could you just list the URL and then the URL you want it to be without any of the extra stuff?
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-25-2007, 06:31 PM Re: Why can't I rewrite this url using mod_rewrite? I have included the mod rewrite r
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
Code:
RewriteRule ^watch(.*).swf FLVPlayer_Progressive.swf?MM_ComponentVersion=1&skinName=Halo_Skin_3&autoPlay=true&autoRewind=true&streamName=http://www.technologyforever.com/secret/$1.flv
Meaning
I am trying to hide the location of an flv in the source code using mod rewrite
Code:
 FLVPlayer_Progressive.swf?MM_ComponentVersion=1&skinName=Halo_Skin_3&autoPlay=true&autoRewind=true&streamName=http://www.technologyforever.com/secret/$1.flv
is the total url
http://www.technologyforever.com/secret/$1.flv = $1 is the variable
http://www.technologyforever.com/secret/2.flv = watch2.swf http://www.technologyforever.com/secret/3.flv = watch3.swf
watch(.*).swf = (.*) where the variable goes on the new url

Do you see what I mean I am trying to hide the location of an flv by rewriting the url to watch(.*).swf so the flv location is not known.
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Last edited by goheadtry; 08-25-2007 at 06:34 PM..
goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Old 08-25-2007, 07:11 PM Re: Why can't I rewrite this url using mod_rewrite? I have included the mod rewrite r
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
why dont you have the flv in a folder BELOW the www folder, and then have a script like i posted somewhere else about this, which also has a thing so if they try to access directly it refushes to give access to your flvs.

or even have it so it only allows access to certain pages but as i think you want this on multiple sites, this wouldnt work, and you should just have it not allow direct access
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 08-25-2007, 07:31 PM Re: Why can't I rewrite this url using mod_rewrite? I have included the mod rewrite r
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
Because the player uses the URL want to hide the url using a mod_rewrite and they can be posted on other sites without other people downloading the FLV directly.
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Reply     « Reply to Why can't I rewrite this url using mod_rewrite? I have included the mod rewrite rule.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21593 seconds with 12 queries