Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-09-2012, 05:11 PM   PM User | #1
jdblewitt
New Coder

 
Join Date: Sep 2006
Posts: 84
Thanks: 47
Thanked 0 Times in 0 Posts
jdblewitt is an unknown quantity at this point
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.
jdblewitt is offline   Reply With Quote
Old 07-09-2012, 07:57 PM   PM User | #2
jdblewitt
New Coder

 
Join Date: Sep 2006
Posts: 84
Thanks: 47
Thanked 0 Times in 0 Posts
jdblewitt is an unknown quantity at this point
resolved....I'd post the fix but just hired someone and he rewrote the whole thing.....thanks for looking.
jdblewitt is offline   Reply With Quote
Old 01-03-2013, 06:45 PM   PM User | #3
mavdent
New to the CF scene

 
Join Date: Sep 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
mavdent is an unknown quantity at this point
I have the same problem.
It would be better if you can post the solution here..
mavdent is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:50 PM.


Advertisement
Log in to turn off these ads.