Forum Moderators: phranque

Message Too Old, No Replies

The page isn't redirecting properly

         

dbldee

2:45 pm on Feb 3, 2010 (gmt 0)

10+ Year Member



Partial code

#Options +FollowSymLinks
#Options -MultiViews
#Options All -Indexes
AddType x-mapp-php5 .php
<FilesMatch "\.(htaccess|tpl)$">
Order Allow,Deny
Deny from all
</FilesMatch>

<IfModule mod_rewrite.c>
RewriteBase /
RewriteEngine On

RewriteCond %{HTTP_HOST} !^example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

#RewriteRule ^([a-zA-Z]+)\.html$ $1.php [L]
RewriteRule ^view\.php$ listing.php [L]

#Handle all category links. Static category text followed by ID, followed by path
#The "category" text here needs to be changed if the language variable category is changed
RewriteRule ^category\/(.+)location/(.+/)([0-9]+)\.html$ browse_categories.php?id=$1&location=$2&page=$3 [L,NC]
RewriteRule ^category\/(.+)location/(.+)$ browse_categories.php?id=$1&location=$2 [L,NC]
RewriteRule ^category\/(.+/)([0-9]+)\.html$ browse_categories.php?id=$1&page=$2 [L,NC]
RewriteRule ^category\/(.+)$ browse_categories.php?id=$1 [L,NC]

#Handle all location links. Static location text followed by ID, followed by path
#The "location" text here needs to be changed if the language variable location is changed
RewriteRule ^location\/(.+/)([0-9]+)\.html$ browse_locations.php?id=$1&page=$2 [L,NC]
RewriteRule ^location\/(.+)$ browse_locations.php?id=$1 [L,NC]



Google chrome responds with Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.


Any assistance thoughts or suggestions are appreciated.


thank you

[edited by: jdMorgan at 3:52 pm (utc) on Feb. 3, 2010]
[edit reason] Please use example.com. See TOS., [/edit]

jdMorgan

3:57 pm on Feb 3, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please see edit to post above.

What URL-path are you getting the redirection loop with?

What is your defined DirectoryIndex path?

Have you tried the "Live HTTP Headers" add-on (or similar) for Firefox/Mozilla browsers to inspect the redirection response headers from your server? -- Is this a single-redirect loop, or is it two (or more) redirects interfering with each other?

Jim

g1smd

9:47 pm on Feb 3, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There's no need to 'escape' the forward slashes in the patterns.

That's not the answer to your problems, but an issue to be fixed.