Forum
Welcome, Guest
Please Login to access forum.
Re:JSitemap doesn't work since .htaccess changed (1 viewing) 
Go to bottom
TOPIC: Re:JSitemap doesn't work since .htaccess changed
#5103
Mohamed Maaroufi
Fresh Boarder
Posts: 4
User Offline
JSitemap doesn't work since .htaccess changed Karma: 0  
Hello,

Many functionnalities of JSitemap doesn't work anymore (seo spider...) because I made some changes on my htaccess file. The problem is that "google search console" said there is a duplicate content with the www and non-www website version. Notice that my website is using HTTPS. So I change my htaccess from:

Code:

RewriteEngine On RewriteCond %{HTTPS} OFF RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
To:
Code:

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST}#%{HTTPS}s ^www\.([^#]+)#(?:off|on(s)) [NC] RewriteRule ^ http%2://%1%{REQUEST_URI} [R=301,L] </IfModule>
May be something is wrong on the code or not relevant. My website works well and it is now correctly redirected but JSitemap doesn't. Any help?
 
Logged Logged  
  The administrator has disabled public write access.
#5104
John Dagelmore
Admin
Posts: 3873
User Online Now
Re:JSitemap doesn't work since .htaccess changed Karma: 84  
Hello,

having a look at your website source code it seems that the problem is due to a misconfiguration of the website.

Despite the fact that you have added a domain redirect in the htaccess from https://www.thenomanssky.com to https://thenomanssky.com the Joomla configuration seems to have still hardcoded the www version https://www.thenomanssky.com everywhere (see attached image). Obviously this affect the backend functionalities of JSitemap like seo spider, etc that are javascript based app blocked if the domain is different. If you access the backend using https://thenomanssky.com/administrator and the request is done to https://www.thenomanssky.com the script will be blocked.

Ensure that the configuration.php of Joomla has the $live_site variable empty as by default and that there are no other plugins forcing joomla to the www version of the website.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top