Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2006
    Posts
    84
    Thanks
    47
    Thanked 0 Times in 0 Posts

    htaccess not working with server update. Please Help!

    Hello, I'm freaking out! My htaccess has been fine for 6 months and over the weekend it is no longer working. I found out that there was a server update and it is now broken.

    My site is bookclubshop.com

    Tech support sent me this....

    There is a loop in the htaccess that needs to be fixed.
    2012-07-09 11:50:56.095 [INFO] [91.201.64.24:33584-0#APVH_bookclubshop.bluedevelopment.org] [REWRITE] detect external loop redirection with target URL: /book-clubs/one-spirit/authors/, skip.
    Most likely you had the loop all along but it was not triggered until the update.
    Sorry.


    My htacces file is
    Code:
    RewriteEngine On
    RewriteOptions Inherit
    
    RewriteRule ^(.*)?/?index\.php /$1/ [R=301,QSA]
    
    # Authors
    RewriteRule ^(book-clubs|audiobook-clubs|textbooks|dvd-clubs|ebooks)/([a-zA-Z0-9-]*?)/authors/(.+?)(/(index\.php)?)?$ /$1/$2/authors/?author=$3 [L]
    
    # Books
    RewriteRule ^(book-clubs|audiobook-clubs|textbooks|dvd-clubs|ebooks)/([a-zA-Z0-9-]*?)/books/(.+?)(/(index\.php)?)?$ /$1/$2/books/?book=$3 [L]
    
    # Book clubs
    RewriteCond %{QUERY_STRING} ^(.+&)?section=([a-zA-Z0-9-]+)(&(.+)?)?$
    RewriteRule ^(book-clubs|audiobook-clubs|textbooks|dvd-clubs|ebooks)/([a-zA-Z0-9-]+?)/([a-zA-Z0-9-]+)?/?$ /$1/$2/%2/?%4 [R=301,L]
    
    RewriteCond %{QUERY_STRING} !^(.+&)?author=(.+?)(&(.+)?)?$
    RewriteCond %{QUERY_STRING} !^(.+&)?book=(.+?)(&(.+)?)?$
    RewriteRule ^(book-clubs|audiobook-clubs|textbooks|dvd-clubs|ebooks)/([^/]*)/([a-zA-Z0-9\-]+?)/$ /$1/$2/?section=$3 [QSA]
    Anything jump out as why this would loop? An example of the problem would be on this page http://www.bookclubshop.com/book-clubs/doubleday/ the review, selection, user reviews, and browse authors links don't work.

    Thanks.

  • #2
    New Coder
    Join Date
    Sep 2006
    Posts
    84
    Thanks
    47
    Thanked 0 Times in 0 Posts
    resolved....I'd post the fix but just hired someone and he rewrote the whole thing.....thanks for looking.

  • #3
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have the same problem.
    It would be better if you can post the solution here..


  •  

    Posting Permissions

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