Announcement

Collapse
No announcement yet.

301 Redirect breakes catalog

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    301 Redirect breakes catalog

    Hi

    I am trying to set up 301 permanent redirect from non www to www URLs all for the purpose of redirecting SE robots to a single domain. For that purpose I have placed .htaccess file in the roote folder with the following code:

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

    The brochure pages are working nicely, however the catalog pages are returning 500 internal server error.

    Any help with this problem will be greatly appreciated

    #2
    Gordon,

    To redirect all non-www traffic to www:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
    RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]

    Ensure that all your links to folders always end in a trailing / if there is no filename after that link.

    A search for 301 redirect on the forum should produce several threads dealing with the subject.

    Kind regards,
    Bruce King
    SellerDeck

    Comment

    Working...
    X