JET-Dev Posted June 3, 2011 Share Posted June 3, 2011 Hello,Just have a slight problem with my CMS and Menu. I activated friendly url and everything works perfect except that when clicking on my menu links from my CMS pages it uses the url: /content/nya-produkter. It should be the url: /nya-produkter.To see the problem “http://www.homestock.se/content/1-leverans” and click on any menu link.You will then be directed to : “http://www.homestock.se/content/nya-produkter”Should be “http://www.homestock.se/nya-produkter”Thankful to all replies as I can’t solve this on my own. Link to comment Share on other sites More sharing options...
JET-Dev Posted June 5, 2011 Author Share Posted June 5, 2011 Anyone? Stuck with this for a week now.. I know its not impossible to solve.Here is my htaccess file. why is it giving the link www.mysite.se/content/new-products?when it should be www.mysite.se/new-productsSame happens with www.mysite.se/productcategory/new-productswhen u click on the menubar while watching a product.PLS HELP Im on prestashop 1.4.2.5 # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg [L] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$3&isolang;=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html /product.php?id_product=$2&isolang;=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*) /category.php?id_category=$2&isolang;=$1 [QSA,L] RewriteRule ^404-error$ /404.php [QSA,L] RewriteRule ^adress$ /address.php [QSA,L] RewriteRule ^adresser$ /addresses.php [QSA,L] RewriteRule ^authentication$ /authentication.php [QSA,L] RewriteRule ^best-sales$ /best-sales.php [QSA,L] RewriteRule ^varukorg$ /cart.php [QSA,L] RewriteRule ^kontakta-oss$ /contact-form.php [QSA,L] RewriteRule ^discount$ /discount.php [QSA,L] RewriteRule ^guest-tracking$ /guest-tracking.php [QSA,L] RewriteRule ^history$ /history.php [QSA,L] RewriteRule ^identity$ /identity.php [QSA,L] RewriteRule ^manufacturers$ /manufacturer.php [QSA,L] RewriteRule ^konto$ /my-account.php [QSA,L] RewriteRule ^nya-produkter$ /new-products.php [QSA,L] RewriteRule ^order$ /order.php [QSA,L] RewriteRule ^order-follow$ /order-follow.php [QSA,L] RewriteRule ^quick-order$ /order-opc.php [QSA,L] RewriteRule ^order-slip$ /order-slip.php [QSA,L] RewriteRule ^forgot-your-password$ /password.php [QSA,L] RewriteRule ^specials$ /prices-drop.php [QSA,L] RewriteRule ^search$ /search.php [QSA,L] RewriteRule ^sitemap$ /sitemap.php [QSA,L] RewriteRule ^stores$ /stores.php [QSA,L] RewriteRule ^suppliers$ /supplier.php [QSA,L] # Catch 404 errors ErrorDocument 404 /404.php Link to comment Share on other sites More sharing options...
nzrobert Posted June 30, 2011 Share Posted June 30, 2011 look in the link.php file in the /admin folder.Look for a section that looks like this: public function getCMSLink($cms, $alias = null) { if (is_object($cms)) return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.'content/'.intval($cms->id).'-'.$cms->link_rewrite) : (_PS_BASE_URL_.__PS_BASE_URI__.'cms.php?id_cms='.intval($cms->id)); if ($alias) return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.'content/'.intval($cms).'-'.$alias) : (_PS_BASE_URL_.__PS_BASE_URI__.'cms.php?id_cms='.intval($cms)); return _PS_BASE_URL_.__PS_BASE_URI__.'cms.php?id_cms='.intval($cms); } And change as neccessary, then update your htaccess file. Link to comment Share on other sites More sharing options...
NGSHK Posted July 9, 2011 Share Posted July 9, 2011 Thanks Friend, It is helpful to solve the problem I was stucked. Link to comment Share on other sites More sharing options...
basse1985 Posted October 30, 2011 Share Posted October 30, 2011 Is this solved? I have the exact same problem and this didn't help.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now