![]() | |
| |
| |||||||
| HTML / Design Are you a designer? Or just trying to become one? Great! You'll be able to talk about layouts, and HTML code to help your fellow designers, so everyone can work together to master the tricks of the trade. (Maybe even some JavaScript too!) |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
|
Hi, I need some help. I need to create a redirect from a folder /tmp, which currently gives a good ol' 406 error, "An appropriate representation of the requested resource /tmp could not be found on this server." Which is Apache's way of saying get lost....but I want to redirect it to index.php on my site. I used cPanel for the other error custom pages but I am a little foggy on how to create this one as it is not in cPanel. Any help would be great! I am on a VPS plan so I can change the mod_rewrites. Thanks for your help with this! |
| ||||
| Quote:
What are you trying to do, please show us, so we know what to advise.
__________________ Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
| |||
| Quote:
Well, basically I want it to be invisible from the browser and redirect it back to my main page, (index.php). I have done this for all the other error pages, 404, etc. and directed them back to index.php, <meta http-equiv="refresh" content="0;URL=/index.php"> I am just curious on how I create one for a 406 error, (as I don't know how to make them without cPanel. Thanks! -Zeb |
| ||||
|
All you want to do in this case then, is: HostICan - Support - Pre-Sales, E-Mail, and so many more answers... :: Header Redirect Method 1 would work the best. ---- You're way you can do: Code: <meta http-equiv="refresh" content="0;URL=../index.php">
__________________ Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
| |||
| Quote:
thanks for the heads up Inxcode. I appreciate your help. I will do method 1. Have a good one, -Zeb |
| ||||
|
Glad I was able to assist.
__________________ Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
| ||||
| Quote:
Code: <?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yourOtherSite.com/index.php");
exit();
?>
|
| ||||
| Good to know, thanks for the post
__________________ Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FYI: Internal Server Error 500 | lnxcode | Shared Hosting | 1 | 11-05-2007 05:23 AM |
| Cannot Allocate Memory Error | itwasntme | Virtual Private Servers (VPS) | 10 | 10-26-2007 02:18 PM |
| Error when loading www.Hostican.com? | Joe User | Javascript / Java Applets | 26 | 10-12-2007 05:42 AM |
| CGI error | domz | Shared Hosting | 3 | 10-04-2007 03:10 AM |
| .htaccess and wordpress 406 error | db3000 | PHP / MySQL Assistance | 33 | 09-25-2007 09:19 PM |