Jump to content

[fixed] .htaccess and prestashop login problem


Recommended Posts

I give up. We are just about to lose our customer completely becouse of strange prestashop behavior.... We tryied all the fixes, and some off them worked - cookies were created for ie users succesfully.

We putted the p3p codes in each page for cookies. We changed cookies lifetime from 172000something to 3600, yet again some people with IE cannot login (incuding me). I give up. And you also seem to not know why. I know onw for sure, i wont choose prestashop again untill its fixed for anything.

Link to comment
Share on other sites

ok another problem after cookies was the "www" thing in the website address. If someone wrote "www" loging in worked, if adress was typed without "www" loging in doesn work.

My quesiton is: Will evevrything be ok if i wil move prestashop files into some sub-folder and make redirection at main domain dolfer to this subfolder? Will everything with database be ok?

Or maybe there is some easier way to make "www" always appear as website address , even whe someone type just http://mydomain.com.pl?

Link to comment
Share on other sites

yeah jus got that info from host customer support, but do you know what xactly write there? :)

default .htaccess in prestashop folder i have contains:

# 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



i have found on google code:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^hungerfordwebdesign\.com
RewriteRule ^(.*)$ http://www.hungerfordwebdesign.com/$1 [R=permanent,L]



the problem is my domain have name.com.pl not just .com
What do i do?

Link to comment
Share on other sites

ok done:

# 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



i know i know im awesome 8)

btw. to make it work you have to enable "friendly url" in prestashop admin and change htaccess.txt to .htacess

Link to comment
Share on other sites

×
×
  • Create New...