Hiller Posted June 19, 2013 Share Posted June 19, 2013 (edited) Hej alle Jeg har lidt problemer med min redirect. Problemet den ikke redirecter overhovdet. Den skal fra oliz.dk til oliz.dk/shop Min htaccess ser sådan ud, man siger at den ser rodet ud, men ved ikke hvordan den skal se ud. RewriteOptions inherit # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums # URL rewriting module activation RewriteEngine on # 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 RewriteCond %{HTTP_HOST} ^oliz\.dk$ [OR] RewriteCond %{HTTP_HOST} ^www\.oliz\.dk$ RewriteRule ^/?$ "http\:\/\/oliz\.dk\/shop" [R=301,L] Edited June 22, 2013 by Hiller (see edit history) Link to comment Share on other sites More sharing options...
Prestawise Posted June 20, 2013 Share Posted June 20, 2013 Prøv med denne i stedet RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?oliz.dk$ RewriteRule ^(/)?$ shop [L] Link to comment Share on other sites More sharing options...
markottnilsen Posted June 20, 2013 Share Posted June 20, 2013 Hvad er det helt præcist du ønsker. At hente indhold fra mappen shop men det ligner det står uden shop eller at sende trafik ind så urlen og shoppen loades fra /shop ? Link to comment Share on other sites More sharing options...
Hiller Posted June 20, 2013 Author Share Posted June 20, 2013 Det hænger sådan sammen at shoppen ligger på domænet Oliz.dk/shop. Men mit hovededomæne er oliz.dk, så når de skriver oliz.dk skal den redirecte over på oliz.dk/shop. Problemet det sker bare ikke på grund af htaccess filen. Link to comment Share on other sites More sharing options...
Prestafan1234 Posted June 20, 2013 Share Posted June 20, 2013 (edited) Du kan angive shoppens URL i Back Office - SEO og URLs i feltet: PS bibliotek, hvor du skriver /shop Edited June 20, 2013 by Prestafan1234 (see edit history) Link to comment Share on other sites More sharing options...
Hiller Posted June 22, 2013 Author Share Posted June 22, 2013 Mange tak for hjælpen. det er løst! 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