Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > HTML / Design
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

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!)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2007, 08:41 PM
Junior Member
 
Join Date: Nov 2007
Posts: 3
Default 406 error

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!
Reply With Quote
  #2 (permalink)  
Old 11-06-2007, 09:03 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,700
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by Nomad View Post
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!
This is actually mod_security affecting what you are doing to prevent your account from getting hacked. Seems that is is getting in conflict with what you're doing.

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.
Reply With Quote
  #3 (permalink)  
Old 11-07-2007, 08:55 AM
Junior Member
 
Join Date: Nov 2007
Posts: 3
Default

Quote:
Originally Posted by lnxcode View Post
What are you trying to do, please show us, so we know what to advise.
Thanks for the help Inxcode.

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
Reply With Quote
  #4 (permalink)  
Old 11-07-2007, 01:29 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,700
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

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">
It should be ../ not ./
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #5 (permalink)  
Old 11-08-2007, 06:04 PM
Junior Member
 
Join Date: Nov 2007
Posts: 3
Default

Quote:
Originally Posted by lnxcode View Post
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">
It should be ../ not ./
Ah,

thanks for the heads up Inxcode. I appreciate your help. I will do method 1.

Have a good one,

-Zeb
Reply With Quote
  #6 (permalink)  
Old 11-09-2007, 09:39 AM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,700
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

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.
Reply With Quote
  #7 (permalink)  
Old 11-14-2007, 08:20 PM
thnet's Avatar
Member
 
Join Date: Oct 2007
Location: basement
Posts: 91
Default

Quote:
Originally Posted by lnxcode View Post
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">
It should be ../ not ./
or use a 301 redirect in php

Code:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yourOtherSite.com/index.php");
exit();
?>
might want to put this in the kb.
Reply With Quote
  #8 (permalink)  
Old 11-14-2007, 09:05 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,700
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by thnet View Post
or use a 301 redirect in php

Code:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yourOtherSite.com/index.php");
exit();
?>
might want to put this in the kb.
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 02:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.