Forums / General Questions / I have problems with 301 redirect and loging into my shop/ordering

I have problems with 301 redirect and loging into my shop/ordering

Locked

Views: 951

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
2 Sep 2009, 5:20 PM
#1
the_rampage_rado_bg avatar

the_rampage_rado_bg

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

I have problems with 301 redirect and loging into my shop/ordering

Hi people!

I'm using ZenCart for about 2 months and I applied some theme over it and it became beautiful but in recent days I thought it would be great to SEO it a little so I redirected my last domain to the new URL and started thinking of www/non-www and index.php optimisation.

I used some other .htaccess files found on other sources in the net but then I got a problem with the admin login and I came here to seek sollution. I found it with RewriteEngine Off but then I found out that I cant add things to my cart. I fixed that with this rows:

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php?\ HTTP/
RewriteRule ^(.*)index\.php?$ http://www.website.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^website\.com$ [NC]
RewriteRule ^(.*)$ http://www.website.com/$1 [R=301,L]
```and includex -Indexes in options. But then I couldn't log into my shop account. No matter what I tried - changing www./non-www. in includes/configure/ - no real result.

Guys I'm out of options and have to fix it but I don't know how. Any ideas?

I know it's probably been discussed millions of times but I'll continue to search for a compatible solution right now...
2 Sep 2009, 8:37 PM
#3
the_rampage_rado_bg avatar

the_rampage_rado_bg

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Re: I have problems with 301 redirect and loging into my shop/ordering

I don't see how this could fix my problem, but if it's not told to do so I would not put this mod for now.

4 Sep 2009, 12:21 AM
#4
hhstudio avatar

hhstudio

New Zenner

Join Date:
Aug 2009
Posts:
31
Plugin Contributions:
0

Re: I have problems with 301 redirect and loging into my shop/ordering

The reason I suggested the mod is the mod is designed to do exactly what you want make the URLS of your site SEO friendly.

Although the 301 does refer to trying to redirect somewhere else.

So that mod will work if your trying to make your urls seo friendly. If I miss read I apologize.

4 Sep 2009, 12:31 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: I have problems with 301 redirect and loging into my shop/ordering

Sorry, but your original post isn't clear. Is that the actual .htaccess file or an amended version?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 Sep 2009, 3:51 PM
#6
the_rampage_rado_bg avatar

the_rampage_rado_bg

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Re: I have problems with 301 redirect and loging into my shop/ordering

Nope... I wrote this .htaccess because I wanted to redirect everthing to http://www.site.eu/ and I 301 redirected my old shop domain to this adress. No problem there. But when I tried to use this rows above I entered in problems.

First of all I couldn't log in in admin panel - I fixed it with RewriteEngine Off... Then I found out when I try to add an item in my basket it does not go in ... :)
I found that the rows "RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.index.php?\ HTTP/
RewriteRule ^(.
)index.php?$ http://www.website.com/$1 [R=301,L]" are responsible for that. I removed them but then I couldn't log into my client account and I found out that I have problem with the www./non-www. part of the script too. So I removed all of it and just wrote "Options -Indexes
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.)=http [NC]
RewriteRule ^(.
)$ - [F,L]
" as in one of the security guides in this site.