Jump to content

Problem with htacces file


Recommended Posts

My eshop is located in peciatky.sk/eshop and I had a htaccess configured to mask the eshop directory so that the url always displays as peciatky.sk

 

The redirects stopped working, and I have no idea why :/ 

 

Here is my htaccess:

RewriteEngine On
#RewriteRule ^$ /eshop [L]
#RewriteRule ^(.*)$ /eshop/$1 [R=301,NC,L] # also works

RewriteRule ^(.*)$ eshop/ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ eshop/$1


RewriteCond %{HTTP_HOST} ^peciatky\.sk$ [NC] 
RewriteRule ^/?(.*)$ http://www.peciatky.sk/$1 [R=301,L,QSA,NE]

Thanks,

Marek

Link to comment
Share on other sites

×
×
  • Create New...