Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Location
    Rochester, New York
    Posts
    97
    Plugin Contributions
    0

    Default Using 301 Redirect with SSU

    Hey All,

    I have simple seo urls installed on my store. Now for SEO purposes I am looking to also create a 301 redirect from outplaypoker.com to www.outplaypoker.com.

    I was instructed to use the .htaccess however it will not work...

    Here is what I am working with:
    PHP Code:
    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php

    #### BOF SSU
    # For security reasons, Option followsymlinks cannot be overridden.
    #Options +FollowSymLinks
    Options +SymLinksIfOwnerMatch
    RewriteEngine On
    # Change "/zencart/ to the correct setting
    # if your site is located at root folder, then you should have RewriteBase /
    # Go to your include/configure.php, this value should be the same with the value of DIR_WS_CATALOG
    RewriteBase /

    # Deny access from .htaccess
    RewriteRule ^\.htaccess$ - [F]
    RewriteCond %{SCRIPT_FILENAME} -[OR]
    RewriteCond %{SCRIPT_FILENAME} -d
    RewriteRule 
    .* - [L]
    RewriteRule ^(.+) index.php/$[E=VAR1:$1,QSA,L]
    #### EOF SSU 
    And the 301 Redirect says to use:
    PHP Code:
    Options +FollowSymlinks
    RewriteEngine on
    rewritecond 
    %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] 
    Any Help?

    Thanks,
    Nick

  2. #2
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: Using 301 Redirect with SSU

    Remove the space before the .php bit:
    AddHandler application/x-httpd-php5s .php
    After the existing line:
    RewriteEngine on
    Add/insert only this extra code:
    Code:
    RewriteCond %{HTTP_HOST} !^(www\.domain\.com)?$
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    Leave all of the other existing lines alone. Don't alter anything else.

  3. #3
    Join Date
    Apr 2010
    Location
    Rochester, New York
    Posts
    97
    Plugin Contributions
    0

    Default Re: Using 301 Redirect with SSU

    This gives me a 500 internal server error...

    But if I do not remove the space before the .php line then it works.

    Thank You,
    Nick
    Last edited by NBordeau; 1 May 2010 at 11:09 PM.

 

 

Similar Threads

  1. Pages exist but still 301 (1.3.8 with SSU)
    By khuramyz in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 5 Aug 2010, 01:28 PM
  2. How to redirect a pseudo-static page using a 301 redirect ?
    By anahong in forum General Questions
    Replies: 1
    Last Post: 23 Jul 2010, 02:37 PM
  3. Odd Category Redirect - using SSU
    By bobthemolder in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 13 Jun 2010, 05:49 PM
  4. Please help with an infinite redirect loop using SSU 3.5.8
    By linnx in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 May 2010, 02:45 PM
  5. 301 Redirect using windows
    By helpme in forum General Questions
    Replies: 1
    Last Post: 19 Jul 2007, 08:27 PM

Posting Permissions

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