Hello; I am desperately hunting for someone who has experienced this issue as I may start pulling my hair out...
We are trying to remove the .html from the end of our product URL's as it is causing the GCLID to drop in analytics.
We have checked:
System > Configuration >Catalog > Catalog > Search Engine Optimizations, Product URL Suffix and Category URL Suffix are both blank. The Product Suffix was .html so we cleared this, cached and reindexed but this made no difference.
We checked the htaccess file and did the following:
Find RewriteBase / in your .htaccess file and add the following directly below it:-
1 2 3 4 5 | ############################################ ## Removes .html suffix from URL's and 301's to those without RewriteCond %{THE_REQUEST} ^GET\ (.*)\.html\ HTTP RewriteRule (.*)\.html$ $1 [R=301] |
We then recached and reindexed but this broke the product pages so I #'d it.
We have Creare and Manadev installed but I have disabled both of these on our dev site and the .html is still in place so I do not think these plugins are to cause.
Does anyone have any other ideas? I have trawlled pages of Google to no avail; most are the quick fix i.e. removing the .html from the product url suffix box with a quick cache and reindex but we know this has not worked and I am now running out of ideas. Another developer has said just to disable each module we have one by one on our dev site - this has not proved fruitful either.
Please help if you have experienced this
Hi,
What happens when you remove the .html from the url when you are on a product page?
it just gives 404 error, if we add .html back to URL it redirects correctly
The default value of each is . html. You can change it to something else, or to remove it from URL addresses just delete it. Then click on the Save Config button in the upper right corner.
I am trying this but whan I click on Save Config menu reloads with a 404 page and i refresh the page and the change is not saved.
@mobinasalada1f wrote:The default value of each is . html. You can change it to something else, or to remove it from URL addresses just delete it. Then click on the Save Config button in the upper right corner.