Atilla_the_hun Posted June 10, 2011 Share Posted June 10, 2011 Problem:My back office seems to be working.My front office does not work. When i click on view my shop i get the following error: "404 - File or directory not found.The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable."I have created a .htaccess file that was blank. The generate friendly url / optimise worked. The config / settings.inc.php / is set as follows: define('__PS_BASE_URI__', '/');when i go to load my domain.com it automatically goes to domain.com/enAny ideas would be appreciatedThanksEDIT:ok. I went to the back office / preferences / SEO & Urls and turned off the automatically redirect to Canonical url. This allowed me to open the front office.I am having th same problem with the products. the link try to launch domain.com/en/product. How do i remove the en?The products would not open when i clicked on them. So i turned off the friendly URL.How do I turn on friendly URL's and not loose the links? Link to comment Share on other sites More sharing options...
theme_designer Posted June 10, 2011 Share Posted June 10, 2011 # BEGIN WordPressRewriteEngine OnRewriteCond %{HTTP_HOST} ^domainname\.com\.plRewriteRule ^(.*)$ http://www.domainname.com.pl/$1 [R=permanent,L]# END WordPress# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([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 ^([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]# Catch 404 errorsErrorDocument 404 /404.php--------------copy the above code to your .htaccess file. Link to comment Share on other sites More sharing options...
Atilla_the_hun Posted June 23, 2011 Author Share Posted June 23, 2011 The back office is now working.The home page on the front office works, however all the images from the products are not showing and the links to the products returns a 404 error. Link to comment Share on other sites More sharing options...
Najam Sajid Posted November 9 Share Posted November 9 Hello, Have you found any solution? please share Thank you so much 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