#1
  1. No Profile Picture
    Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Sep 2011
    Posts
    33
    Rep Power
    6

    301 Redirecting index.php To Root


    Hi all,
    I have an Opencart webstore and have successfully managed to 301 redirect the whole site to the https://www varient except for mydomain.co.uk/index.php and mydomain.co.uk/index.php?

    I am using the following code in my .htaccess file:

    Code:
    Options +FollowSymlinks 
    RewriteEngine on 
    RewriteBase /
    
    RewriteCond %{SERVER_PORT} !^443$ 
    
    RewriteCond %{HTTPS}  off 
    RewriteRule ^(.*)$ https://www.mydomain.co.uk/$1 [R=301,L]
    So how do I get the php varients to 301 redirect too?

    Many thanks.
    Last edited by Nortski; Aug 3rd, 2017 at 05:25 AM.
  2. #2
  3. Just a Photographer
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    May 2011
    Location
    Atwater, CA
    Posts
    839
    Rep Power
    1587
    ... varient except for mydomain.co.uk/index.php and mydomain.co.uk/index.php?
    Those are the same url.

    You might get a better response at stackoverflow.com then a SEO forum.
    Last edited by Hikin Mike; Aug 3rd, 2017 at 02:56 PM.
    - Mike

    Jack of all trades, master of none.

Similar Threads

  1. Splitting PR index.asp and root
    By tonynoriega in forum SEO Help (General Chat)
    Replies: 2
    Last Post: Feb 25th, 2009, 04:16 PM
  2. How to do 301 redirect of index.html to root in directory
    By samfing in forum Search Engine Optimization
    Replies: 8
    Last Post: Feb 14th, 2008, 08:31 PM

IMN logo majestic logo threadwatch logo seochat tools logo