Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-28-2005, 07:32 PM   #1
Peacemaker
Confirmed User
 
Peacemaker's Avatar
 
Join Date: Feb 2002
Location: Mars
Posts: 897
.htaccess question

hi,
hopefuly someone can and will help me.
following situation:


user wants to download a movie from my site via a link:
http://www.mydomain.com/movies/name_abc.avi

name.avi does not exist in that folder
but i want the user to download a movie called "name_abc.avi" anyway.
in the /movies/ folder there is a .avi called "name_xyz.avi".

and the user should download the "name_xyz.avi" but the name of the download should be "name_abc.avi"

i hope you understand

is it possible to make this with .htaccess?

Thanks
__________________
SEO since 2002 - Google Index Record: 32 minutes. - Selling SEO services and tools
Peacemaker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2005, 07:51 PM   #2
BV
wtf
 
BV's Avatar
 
Industry Role:
Join Date: Sep 2001
Location: Bikini State, FL USA
Posts: 10,914
i think i know of a way but you can not have the file "name_xyz.avi" in the directory

involves configuring your server to set "name_abc.avi" as your 404

what is this for, i'm curious
BV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2005, 07:55 PM   #3
Abbie Bueller
Confirmed User
 
Join Date: Jul 2003
Location: Texas
Posts: 160
ErrorDocument 404 /movies/name_abc.avi

Put that in your .htaccess file. It will make any 404 in the same directory as .htaccess load the movie.
Abbie Bueller is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2005, 08:08 PM   #4
Peacemaker
Confirmed User
 
Peacemaker's Avatar
 
Join Date: Feb 2002
Location: Mars
Posts: 897
Quote:
Originally Posted by Abbie Bueller
ErrorDocument 404 /movies/name_abc.avi

Put that in your .htaccess file. It will make any 404 in the same directory as .htaccess load the movie.
hmm. thats not what i want.
__________________
SEO since 2002 - Google Index Record: 32 minutes. - Selling SEO services and tools
Peacemaker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2005, 08:12 PM   #5
Abbie Bueller
Confirmed User
 
Join Date: Jul 2003
Location: Texas
Posts: 160
Your instructions don't make any sense, then.
Abbie Bueller is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2005, 08:16 PM   #6
Abbie Bueller
Confirmed User
 
Join Date: Jul 2003
Location: Texas
Posts: 160
I think I've deciphered your request...

1. user wants to download http://www.mydomain.com/movies/name_abc.avi

2. name.avi does not exist in that folder (abbie: name.avi? what about name_abc.avi?)

3. i want the user to download a movie called "name_abc.avi" anyway (abbie: wtf?)

4. in the /movies/ folder there is an .avi called "name_xyz.avi"

5. user should download the "name_xyz.avi" but the name of the download should be "name_abc.avi"

If you're using unix go into the folder and type this:
ln -s name_xyz.avi name_abc.avi

That makes a symbolic link (abc) to your real file (xyz). No .htaccess necessary.
Abbie Bueller is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2005, 08:38 PM   #7
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
sounds like you need mod_rewrite, if you need help setting it up, icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.