jigsawsteve Posted July 23, 2009 Share Posted July 23, 2009 I am trying to enable the frendly url function which i have changed in prefrences then changed the txt file on my server, but with godaddy it does not seem to work. I have looked through the forum and the internet and some people suggest changing the code in the ttxt file which i have done, but still can get the friendlys to work. any help would be appreciated, thanks Link to comment Share on other sites More sharing options...
jigsawsteve Posted July 28, 2009 Author Share Posted July 28, 2009 anybody with the sme issue please respond if you have worked it out, steve Link to comment Share on other sites More sharing options...
heshkak Posted January 18, 2012 Share Posted January 18, 2012 Posting this solve again, just to make sure the next person looking is able to find it. Add the following to your httaccess: # Do not remove this line, otherwise mod_rewrite rules will stop working #RewriteBase / # URL rewriting module activation RewriteEngine on RewriteCond %{REQUEST_METHOD} !^(TRACE|TRACK|GET|POST|HEAD)$ RewriteRule .* - [F] RewriteBase / Options +FollowSymLinks # URL rewriting rules RewriteRule ^([a-z0-9]+)-([a-z0-9]+)(-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*).jpg$ /img/p/$1-$2$3.jpg [L,E] RewriteRule ^([0-9]+)-([0-9]+)/([_a-zA-Z0-9-]*).jpg$ /img/p/$1-$2.jpg [L,E] RewriteRule ^([0-9]+)(-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*).jpg$ /img/c/$1$2.jpg [L,E] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)-([a-zA-Z0-9-]*).html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)-([a-zA-Z0-9-]*).html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E] RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)-([a-zA-Z0-9-]*).html(.*)$ /product.php?id_product=$2$4 [L,E] RewriteRule ^([0-9]+)-([a-zA-Z0-9-]*).html(.*)$ /product.php?id_product=$1$3 [L,E] RewriteRule ^([0-9]+)-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E] RewriteRule ^content/([0-9]+)-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E] RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E] # Catch 404 errors ErrorDocument 404 /404.php Options -MultiViews Link to comment Share on other sites More sharing options...
newenglanddog Posted March 28, 2012 Share Posted March 28, 2012 Jigsawsteve, did you find a solution? Heshkak, your solution didn't work for me. Link to comment Share on other sites More sharing options...
Recommended Posts