Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2009
    Posts
    6
    Plugin Contributions
    0

    Default 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:
    Code:
    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. #2

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


  3. #3
    Join Date
    Sep 2009
    Posts
    6
    Plugin Contributions
    0

    Default 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. #4

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

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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. #6
    Join Date
    Sep 2009
    Posts
    6
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. Using 301 Redirect with SSU
    By NBordeau in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 1 May 2010, 11:05 PM
  2. Replies: 14
    Last Post: 2 Jul 2008, 03:40 PM
  3. Ultimate_SEO_URLs and 301 Redirect
    By 8 miles in forum General Questions
    Replies: 2
    Last Post: 25 May 2007, 11:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg