• Resolved Lena ?stman

    (@lostdogsse)


    I have a main site for my company and have added a webshop (WooCommerce) in subdirectory /shop.

    I thought the URL to my shop would be <mysite>/shop but in reality it was <mysite>/shop/

    Since I have business cards with <mysite>/shop (which is also much easier to read) I thought I would add a redirect from /shop to /shop/ but it fails.

    My settings:
    Source Url: “/shop”
    Parameters: Ignore parameters
    Target Url: https://<mysite>/shop/index.php

    I have SSL active and redirection for http to https (not sure if that is the problem).

    My .htaccess file:

    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.3.4]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # BEGIN WordPress
    # Direktiven (raderna) mellan ”BEGIN WordPress” och ”END WordPress” ?r
    # dynamiskt genererade och b?r endast ?ndras via WordPress-filter.
    # Eventuella ?ndringar av direktiven mellan dessa mark?rer kommer att skrivas ?ver.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /shop/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /shop/index.php [L]
    </IfModule>

    # END WordPress

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    The redirect checker does not work if you use .htaccess for the redirect. It is up to you to determine if it works.

    Thread Starter Lena ?stman

    (@lostdogsse)

    Sorry but I really don’t understand what that answer meant. What do I need to change to get the redirect to work?

    Plugin Author John Godley

    (@johnny5)

    Is the redirect failing if you visit it?

    ‘not using redirection’ just means that Redirection is not performing the redirect. Something else may be doing it instead. If it is redirecting then nothing is broken.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirection not working (“Agent: Not using redirect”)’ is closed to new replies.