Anyone know how I can make it so if a person visits(for example) http://mydomain.com/hey-i-just-made-this-up.htm but that page doesn't exist, the host responds like it does exist but runs another script to return the content?
.htaccess question
Collapse
X
-
perhaps getting into more details, are you wanting your server to send a 302 (Found) message back to the browser instead of a 404 (Not Found) message, then also provide content as well?
Or are you wanting to do a simple redirect on all 404 error messages? -
I want it to make it seem to the browser like the file is actually there.Originally posted by powerbubba
perhaps getting into more details, are you wanting your server to send a 302 (Found) message back to the browser instead of a 404 (Not Found) message, then also provide content as well?
Or are you wanting to do a simple redirect on all 404 error messages?icq 279990726
www.mcdonalds.com <- great money making opportunityComment
-
Bump ;)
I need the same info
and if its working with diff extention , like pdf etc etc
IE:
I have a folder called /temp/
I have ONLY 1 file, blabla.pdf in this folder
I want to link from many html pages , many differents names to join this pdf like /temp/toto.pdf /temp/tata.pdf
So the server provide the content of blabla.pdf to all other file reuqests.
Thanks!!Comment
-
if you are pointing them all to the same file, why not use a redirectOriginally posted by Wiz
Bump ;)
I need the same info
and if its working with diff extention , like pdf etc etc
IE:
I have a folder called /temp/
I have ONLY 1 file, blabla.pdf in this folder
I want to link from many html pages , many differents names to join this pdf like /temp/toto.pdf /temp/tata.pdf
So the server provide the content of blabla.pdf to all other file reuqests.
Thanks!AIM - X8U
ICQ - 195301080Comment
-
Ok well if I understand you right (which I don't thing I don't) add this to your 404.shtml:
Then a make a php script (example script.php) and do this in it:PHP Code:<!--#include virtual="/path/to/script.php" -->
Make sure 404 is at least 550 bytes if I remember right.PHP Code:<? include("/path/to/content.page"); ?>Comment
-
Anyone needing this done to your server, I can do it for a reasonable price...say $50.00 and have it installed and running perfectly on your server (provided you have php/apache/mysql and mod_rewrite turned on) ....
hit me up on icq or email me!
[email protected]
304634638
lamerhooDYii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.comComment
-
Bumb
I don't want to redirect the traffic, I don't think wiz does either. I need it to have my script output it as if the page existed. My script will dynamically create the page based on what the requested filename was.
icq 279990726
www.mcdonalds.com <- great money making opportunityComment

Comment