GlowHost Web Hosting Forums  

Go Back   GlowHost Web Hosting Forums > Web Hosting Technical Support > cPanel Topics
Register Forum FAQ Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2008
Manna8's Avatar
Junior Web Sage
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0
Manna8 is on a distinguished road
Default cPanel redirects and custom error pages

Hi Everyone!

I am trying to do a redirect on my website as I have people accessing an old part of our site but don't seem to be having much luck and the tutorial videos are too short.

I have gone into cpanel and redirected them from www.speakonlytome.com/newsite (I want to redirect all traffic that has /newsite in the url)to www.speakonlytome.com/home.html but when I check it, I get a 500 Internal server error. So that led me to try custom error pages but again the video is too brief.

So bearing in mind I am a complete newbie and need my hand held....how do I do a correct site redirect so that all the pages with '/newsite' go to the url specified and while I am at it
How do I create custom error pages with some text and a link back to our site?

Thanks!
Caroline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-20-2008
Matt's Avatar
chown -R us.us *YourBase*
 
Join Date: Jan 2005
Location: Moved to Florida!
Posts: 1,729
Rep Power: 10
Matt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of light
Default

Do you need the old site? Why not just rename public_html to public_htmlOLD then move /public_htmlOLD/newsite up one level. Once /newsite has been move to the same level as where /public_html used to be, rename /newsite to /public_html

Would that work?
__________________
:::::
01001100 00110011 00110011 00110111

Last edited by Matt; 11-20-2008 at 09:39 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-20-2008
sergey's Avatar
Newbie
 
Join Date: Aug 2005
Posts: 181
Rep Power: 51
sergey is on a distinguished road
Default

Caroline,

I have modified your .htaccess file and you site doesn't show an Internal Server Error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-20-2008
Manna8's Avatar
Junior Web Sage
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0
Manna8 is on a distinguished road
Default

Hi Matt

That's great and we will definitely try that but I would love to know how to use those functions effectively for next time. And would like to create custom error pages using our logo and links etc

Kind regards
Caroline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-20-2008
Manna8's Avatar
Junior Web Sage
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0
Manna8 is on a distinguished road
Default

Thanks Sergey but when I type Index of /newsite into the browser I get the directory page ie: Index of /newsite? How do I get it to automatically redirect to my home page?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-20-2008
Matt's Avatar
chown -R us.us *YourBase*
 
Join Date: Jan 2005
Location: Moved to Florida!
Posts: 1,729
Rep Power: 10
Matt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of light
Default

Quote:
Originally Posted by Manna8 View Post
Hi Matt

That's great and we will definitely try that but I would love to know how to use those functions effectively for next time. And would like to create custom error pages using our logo and links etc

Kind regards
Caroline
Custom error pages are different than redirection. A custom error page would simply turn that ugly 500 error you had earlier into something that looked like your own website, or they could use javascript to redirect the user to the homepage if you wanted to do something like that.

All you need to do is make a web page like usual and name it 404.shtml or 500.shtml and put standard HTML or SHTML code in the file so that it looks like what you want it to or does what you want it to.

Unfortunately I do not know what Sergey put in your .htaccess file. perhaps he or you will share it with the rest of the community so that others trying to do the same thing can benefit from this post.
__________________
:::::
01001100 00110011 00110011 00110111
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-20-2008
Manna8's Avatar
Junior Web Sage
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0
Manna8 is on a distinguished road
Default

Hi Matt

Yes I understand they are different.
Custom pages: I would like to have them on the site for any issue that arises not just this redirect issue.
Redirect: We have done a robot.txt file with a /newsite no follow but it still seems to be following it.
I know Sergey did some work on my .htaccess but now I get Index of/ newsite - a directory of the pages? So that hasn't worked either

What's next?
Caroline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-21-2008
Matt's Avatar
chown -R us.us *YourBase*
 
Join Date: Jan 2005
Location: Moved to Florida!
Posts: 1,729
Rep Power: 10
Matt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of light
Default

Not all robots pay attention to robots.txt

However a robots.txt is not going to do any redirection for your human visitors.

I see a directory listing at Index of /newsite

I assume that is something you do not want?
__________________
:::::
01001100 00110011 00110011 00110111
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-21-2008
Manna8's Avatar
Junior Web Sage
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0
Manna8 is on a distinguished road
Default

No I don't. I don't want anyone except for me to access /newsite - could it be just as simple as changing the folder name?

Thanks
Caroline
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-21-2008
Matt's Avatar
chown -R us.us *YourBase*
 
Join Date: Jan 2005
Location: Moved to Florida!
Posts: 1,729
Rep Power: 10
Matt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of lightMatt is a glorious beacon of light
Default

Why not just delete it?

Yes, you can rename it, or you can put an index page in there or you can turn of directory indexing in your htaccess file or use the index manager in cPanel which will modify the .htaccess file for you.
__________________
:::::
01001100 00110011 00110011 00110111
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB 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
Redirect Pages QHF General Support 11 02-04-2008 01:57 AM
Pages are failing to validate Scott Web Design 7 12-02-2006 07:44 PM
Help - Pages went missing!! sjwalker General Support 1 10-10-2006 11:55 AM


All times are GMT -5. The time now is 06:31 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO
Copyright 2000-2007 GlowHost.com