Jump to content

About Prestashop Redirecting


Recommended Posts

Hello everyone.

 

I made a webshop in localhost and now i'm moving the whole site over to the internet server. However the browser gives me this notification:

 

"The requested URL /en/ was not found on this server."

 

So the problem is that the server gives me /en/ -version of the site even when there is no other language packs installed anymore!

 

I modified the shop_url -table the way described in this article:

https://www.siteground.com/kb/how_to_configure_prestashop_to_work_with_another_domain/

 

Also i regenerated the .htaccess -file with the help of this article and made sure that it is regenerated:

https://mypresta.eu/en/art/basic-tutorials/how-to-regenerate-htaccess-in-prestashop-1-5.html

 

 

Currently the .htaccess -file contains these lines:

 

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on


#Domain: localhost
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]

RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
</IfModule>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
<IfModule mod_headers.c>
    <FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$">
        Header add Access-Control-Allow-Origin "*"
    </FilesMatch>
</IfModule>

#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

 

edit:

 

I also emptied the prestashop cache from the administrator panel and from the folders like this:

http://www.templatemonster.com/help/prestashop-1-6-x-how-to-clear-smarty-cache.html#gref

 

Still, the server tries to give me that /en/ -version of the site.

 

edit: the problem was related to chmod issues. got it figured out.

Edited by juhalah (see edit history)
Link to comment
Share on other sites

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...