Go Back   HostGator Peer Support Forums > General Discussion > Webhosting

Notices

Reply
 
Thread Tools
  #1  
Old 06-01-2006, 08:41 PM
sgcom sgcom is offline
Hatchling Croc
 
Join Date: Jun 2004
Posts: 29
Default Catch-all for domain

For emails there is a feature call catch-all;

Example, I have an email created gator@gator.com.

I just need to create a default email in cpanel, and it will capture all unrouted emails (like gatot@gator.com).

How about domains? If my domain is hostgator.com, is there a feature to link all unrouted extensions to it.

Example, hostgator.com/index.html is created, if users mistype it to hostgator.com/indexl.html, is there any way to link them to a particular page, instead of showing an error of page not found.

Kindly advise.
Reply With Quote
  #2  
Old 06-01-2006, 08:46 PM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,073
Default Re: Catch-all for domain

There is ways to do that.

You can create a 404 page with a java redirect on it to send them directly to index.php.

You can use mod_rewrite to send them to index.php. (I've not been able to get this to work, so a nice example would help.)

You can use .htaccess to send 404s to index.php.

Of course, you can always create and edit a 404.shtml file that is just a helpful index for your site. That way when they land on it, it doesn't look like a 404 page.

Check out my 404 page on my hosting site: http://magicangelhosting.com/not_here.php

(of course, I just doom myself to a log full of 404 errors....)
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #3  
Old 06-01-2006, 09:08 PM
sgcom sgcom is offline
Hatchling Croc
 
Join Date: Jun 2004
Posts: 29
Default Re: Catch-all for domain

Thanks Serra. I will give it a try.
Reply With Quote
  #4  
Old 06-02-2006, 04:33 PM
gdwoods gdwoods is offline
Junior Croc
 
Join Date: Jul 2005
Posts: 147
Default Re: Catch-all for domain

Quote:
Originally Posted by Serra

Check out my 404 page on my hosting site: http://magicangelhosting.com/not_here.php
lolol!!!! That is HYSTERICAL!!!
Reply With Quote
  #5  
Old 06-02-2006, 05:26 PM
esl's Avatar
esl esl is offline
Emperor Croc
 
Join Date: Jan 2005
Location: Proud to be an American - USA
Posts: 2,231
Default Re: Catch-all for domain

One of the best 404 pages I have seen.
__________________
Have a great day,
Evan
Reply With Quote
Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 11:45 PM.