Results 1 to 3 of 3

Thread: Stop startpage redirect

  1. #1
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Stop startpage redirect

    Many tools warn me that sites I try to optimize (SEO) have a "homepage" that redirects. Meaning that a lot of the inbound links point to the root like http://domain.com, but the actual page shown is http://domain.com/about-us.html (or whatever the startpage happens to be)

    Can I disable this behavior? I'd like to have the first page to redirect to the root url instead. So http://domain.com/about-us.html from my example would redirect to http://domain.com instead and http://domain.com shows about-us.html contents.

    I'm also not sure how big of a problem it is, but I might be missing linking strength to the actual page that I need it on.

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Stop startpage redirect

    You can use the following .htaccess to do this. You should always redirect your "home" page to the root.


    Code:
    	Options +FollowSymLinks 
    	RewriteCond %{THE_REQUEST} ^.*/home.html 
    	RewriteRule ^(.*)home.html$ http://www.company.com/$1 [R=301,L]
    you can also remove the .html is you're not using any suffix.

  3. #3
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: Stop startpage redirect

    Thanks, I had hoped for a Contao solution, but your code works well!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •