![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
wtf
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Feb 2002
Location: Mars
Posts: 897
|
Quote:
__________________
SEO since 2002 - Google Index Record: 32 minutes. - Selling SEO services and tools |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jul 2003
Location: Texas
Posts: 160
|
Your instructions don't make any sense, then.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
<&(©¿©)&>
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |