![]() |
.htaccess question
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?
|
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? |
Quote:
|
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! |
Quote:
|
For some reason ..
I need the server to provide the content from the original file without doing some mod on the url in the nav bar |
Ok well if I understand you right (which I don't thing I don't) add this to your 404.shtml:
PHP Code:
PHP Code:
|
*cough* mod_rewrite *cough*
hahaha |
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 lamerhooD |
All in *on* already ;)
Just need the line to add to the Htaccess ;) |
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. :glugglug |
apache docs? :glugglug
|
Found it.
# - Send all htm requests to script - # options all RewriteEngine on RewriteBase / RewriteRule htm /your/script.php # - End - # |
Quote:
|
Quote:
|
All times are GMT -7. The time now is 03:40 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123