Jump to content

404 error for front office - back office works


Recommended Posts

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/en

Any ideas would be appreciated

Thanks

EDIT:
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

# BEGIN WordPress
RewriteEngine On

RewriteCond %{HTTP_HOST} ^domainname\.com\.pl
RewriteRule ^(.*)$ http://www.domainname.com.pl/$1 [R=permanent,L]
# END WordPress

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
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 ^([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 errors
ErrorDocument 404 /404.php

--------------

copy the above code to your .htaccess file.

Link to comment
Share on other sites

  • 2 weeks later...
  • 13 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...