Redirection not working (“Agent: Not using redirect”)
-
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.phpI 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]
- The topic ‘Redirection not working (“Agent: Not using redirect”)’ is closed to new replies.