Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    4

    Default redirect command for ALL "not found" pages?

    I would like to cover all my bases in terms of any "not found" pages on my site. Ideally, any such pages would be redirected to the home page. Is this possible without knowing which pages they are? One way is in the .htaccess file, like this perhaps?

    RewriteEngine On

    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]

    RewriteRule \/.+ / [L,R]



    Or can I do it via cPanel somehow?

    Thanks for your help!

  2. #2
    Member
    Join Date
    May 2009
    Posts
    11

    Default

    Hi,

    Simply make a custom error page and put a html redirect in it to the home page

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    4

    Default

    Quote Originally Posted by smooch1502 View Post
    Hi,

    Simply make a custom error page and put a html redirect in it to the home page
    Thank you for your reply - Could you give me a few more details regarding how to do this? Apologies, my computer skills are not as good as they need to be.

    Where do I make this page? Where do I put this page? Where do I put the redirect? In the blog, in cPanel? In the .htaccess?

    Also - will this satisfy the search engines?

    Thank you!

Similar Threads & Tags
Similar threads

  1. How Do I Redirect "Cpanel" and "WHM" URL to something anonymous?
    By Wabda20 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-15-2011, 01:19 PM
  2. Replies: 1
    Last Post: 07-04-2011, 02:10 AM
  3. I Installed SSL, but pages are coming up "page cannot be found"
    By Seriom in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-24-2005, 03:36 PM
  4. procedure for deleting perticular shell command from "history" command
    By aress24x7 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-05-2003, 10:06 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube