Jump to content

[SOLVED] Redirect Htaccess - All links broken


Recommended Posts

I found the the cause of my problems in PS 1.5 with changing currency, logging in etc that i thought was Cache problem first. My store is set to coltrak.com but in SEO URLS in backoffice i had it set to www.coltrak.com and that seem to be the cause of the errors. Now that i have set the correct in backoffice coltrak.com all my links get broken and not redirected correctly. Can someone maybe help me out here. The canonical is set. Do i manually have to change the .htaccess or what? I erased it and made a new one with just clicking on/off in friendly URL...URGENT as now everything is broken, facebook and google..What to do?

Edited by coltrak (see edit history)
Link to comment
Share on other sites

One of the easier fixes is to place this in the top of your .htaccess file.

 

non www to www

 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

  • Like 1
Link to comment
Share on other sites

Thank you elPatron i owe you a beer next time ur out in Medallo, u saved a lot of hair pulling today with a fast answer, a little trial and error with htaccess and its done :) thank you

 

con gusto...yo soy paisa

 

don't forget to hit the like button liberally...

  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...