Skip to main content
deleted 2 characters in body
Source Link

What seems to be happening, is your rule is being matched and then an apache apache is sending a 301 redirect response telling the browser to generate a new request for

/web-browser-benchmarks-firefox-chrome/

Chrome is generating this request - as instructed, but when your webserver see's this new request - your rule is matching that request too - again telling chrome to generate another request for /web-browser-benchmarks-firefox-chrome/ resulting in an infinite loop.
You can check with:

$ curl -I www.domain.org/web-browser-benchmarks-firefox-chrome/ 

You will probably see something like:

HTTP/1.1 301 
Server: apache
Location:  www.domain.org/web-browser-benchmarks-firefox-chrome/
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is telling chrome/curl/etc to re-request the page it just requested
Date: Thu, 18 Feb 2016 08:56:02 GMT
[...]

You can try break the loop by with a conditional check - so assuming that

www.domain.org/web-browser-benchmarks-firefox-chrome/

is the actual URL you want to serve, and your current rule uses [R=301,L] so Im assuming a 301 external redirect is what you want.

# this RewriteCond tells apache if this URL is requested, thats the URL we want
# so serve it instead of rewriting it.
RewriteCond "%{REQUEST_URI}" !^/web-browser-benchmarks-firefox-chrome/
RewriteRule [\./:_a-zA-Z0-9]*\/(web-browse(r|rs)-benchmarks)[a-zA-Z0-9-/\.:?=]*(|html) /web-browser-benchmarks-firefox-chrome/ [R=301,L]

What seems to be happening, is your rule is being matched and then an apache is sending a 301 redirect response telling the browser to generate a new request for

/web-browser-benchmarks-firefox-chrome/

Chrome is generating this request - as instructed, but when your webserver see's this new request - your rule is matching that request too - again telling chrome to generate another request for /web-browser-benchmarks-firefox-chrome/ resulting in an infinite loop.
You can check with:

$ curl -I www.domain.org/web-browser-benchmarks-firefox-chrome/ 

You will probably see something like:

HTTP/1.1 301 
Server: apache
Location:  www.domain.org/web-browser-benchmarks-firefox-chrome/
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is telling chrome/curl/etc to re-request the page it just requested
Date: Thu, 18 Feb 2016 08:56:02 GMT
[...]

You can try break the loop by with a conditional check - so assuming that

www.domain.org/web-browser-benchmarks-firefox-chrome/

is the actual URL you want to serve, and your current rule uses [R=301,L] so Im assuming a 301 external redirect is what you want.

# this RewriteCond tells apache if this URL is requested, thats the URL we want
# so serve it instead of rewriting it.
RewriteCond "%{REQUEST_URI}" !^/web-browser-benchmarks-firefox-chrome/
RewriteRule [\./:_a-zA-Z0-9]*\/(web-browse(r|rs)-benchmarks)[a-zA-Z0-9-/\.:?=]*(|html) /web-browser-benchmarks-firefox-chrome/ [R=301,L]

What seems to be happening, is your rule is being matched and then apache is sending a 301 redirect response telling the browser to generate a new request for

/web-browser-benchmarks-firefox-chrome/

Chrome is generating this request - as instructed, but when your webserver see's this new request - your rule is matching that request too - again telling chrome to generate another request for /web-browser-benchmarks-firefox-chrome/ resulting in an infinite loop.
You can check with:

$ curl -I www.domain.org/web-browser-benchmarks-firefox-chrome/ 

You will probably see something like:

HTTP/1.1 301 
Server: apache
Location:  www.domain.org/web-browser-benchmarks-firefox-chrome/
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is telling chrome/curl/etc to re-request the page it just requested
Date: Thu, 18 Feb 2016 08:56:02 GMT
[...]

You can try break the loop by with a conditional check - so assuming that

www.domain.org/web-browser-benchmarks-firefox-chrome/

is the actual URL you want to serve, and your current rule uses [R=301,L] so Im assuming a 301 external redirect is what you want.

# this RewriteCond tells apache if this URL is requested, thats the URL we want
# so serve it instead of rewriting it.
RewriteCond "%{REQUEST_URI}" !^/web-browser-benchmarks-firefox-chrome/
RewriteRule [\./:_a-zA-Z0-9]*\/(web-browse(r|rs)-benchmarks)[a-zA-Z0-9-/\.:?=]*(|html) /web-browser-benchmarks-firefox-chrome/ [R=301,L]
added 424 characters in body
Source Link

What seems to be happening, is your rule is being matched and then an apache is sending a 301 redirect response telling the browser to generate a new request for

/web-browser-benchmarks-firefox-chrome/

Chrome is generating this request - as instructed, but when your webserver see's this new request - your rule is matching that request too - again telling chrome to generate another request for /web-browser-benchmarks-firefox-chrome/ resulting in an infinite loop.
You can check with:

$ curl -I www.domain.org/web-browser-benchmarks-firefox-chrome/ 

You will probably see something like:

HTTP/1.1 301 
Server: apache
Location:  www.domain.org/web-browser-benchmarks-firefox-chrome/
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is telling chrome/curl/etc to re-request the page it just requested
Date: Thu, 18 Feb 2016 08:56:02 GMT
[...]

You can try break the loop by with a conditional check - so assuming that

www.domain.org/web-browser-benchmarks-firefox-chrome/

is the actual URL you want to serve, and your current rule uses [R=301,L] so Im assuming a 301 external redirect is what you want.

# this RewriteCond tells apache if this URL is requested, thats the URL we want
# so serve it instead of rewriting it.
RewriteCond "%{REQUEST_URI}" !^/web-browser-benchmarks-firefox-chrome/
RewriteRule [\./:_a-zA-Z0-9]*\/(web-browse(r|rs)-benchmarks)[a-zA-Z0-9-/\.:?=]*(|html) /web-browser-benchmarks-firefox-chrome/ [R=301,L]

What seems to be happening, is your rule is being matched and then an apache is sending a 301 redirect response telling the browser to generate a new request for

/web-browser-benchmarks-firefox-chrome/

Chrome is generating this request - as instructed, but when your webserver see's this new request - your rule is matching that request too - again telling chrome to generate another request for /web-browser-benchmarks-firefox-chrome/ resulting in an infinite loop.

You can try break the loop by with a conditional check - so assuming that

www.domain.org/web-browser-benchmarks-firefox-chrome/

is the actual URL you want to serve, and your current rule uses [R=301,L] so Im assuming a 301 external redirect is what you want.

# this RewriteCond tells apache if this URL is requested, thats the URL we want
# so serve it instead of rewriting it.
RewriteCond "%{REQUEST_URI}" !^/web-browser-benchmarks-firefox-chrome/
RewriteRule [\./:_a-zA-Z0-9]*\/(web-browse(r|rs)-benchmarks)[a-zA-Z0-9-/\.:?=]*(|html) /web-browser-benchmarks-firefox-chrome/ [R=301,L]

What seems to be happening, is your rule is being matched and then an apache is sending a 301 redirect response telling the browser to generate a new request for

/web-browser-benchmarks-firefox-chrome/

Chrome is generating this request - as instructed, but when your webserver see's this new request - your rule is matching that request too - again telling chrome to generate another request for /web-browser-benchmarks-firefox-chrome/ resulting in an infinite loop.
You can check with:

$ curl -I www.domain.org/web-browser-benchmarks-firefox-chrome/ 

You will probably see something like:

HTTP/1.1 301 
Server: apache
Location:  www.domain.org/web-browser-benchmarks-firefox-chrome/
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is telling chrome/curl/etc to re-request the page it just requested
Date: Thu, 18 Feb 2016 08:56:02 GMT
[...]

You can try break the loop by with a conditional check - so assuming that

www.domain.org/web-browser-benchmarks-firefox-chrome/

is the actual URL you want to serve, and your current rule uses [R=301,L] so Im assuming a 301 external redirect is what you want.

# this RewriteCond tells apache if this URL is requested, thats the URL we want
# so serve it instead of rewriting it.
RewriteCond "%{REQUEST_URI}" !^/web-browser-benchmarks-firefox-chrome/
RewriteRule [\./:_a-zA-Z0-9]*\/(web-browse(r|rs)-benchmarks)[a-zA-Z0-9-/\.:?=]*(|html) /web-browser-benchmarks-firefox-chrome/ [R=301,L]
Source Link

What seems to be happening, is your rule is being matched and then an apache is sending a 301 redirect response telling the browser to generate a new request for

/web-browser-benchmarks-firefox-chrome/

Chrome is generating this request - as instructed, but when your webserver see's this new request - your rule is matching that request too - again telling chrome to generate another request for /web-browser-benchmarks-firefox-chrome/ resulting in an infinite loop.

You can try break the loop by with a conditional check - so assuming that

www.domain.org/web-browser-benchmarks-firefox-chrome/

is the actual URL you want to serve, and your current rule uses [R=301,L] so Im assuming a 301 external redirect is what you want.

# this RewriteCond tells apache if this URL is requested, thats the URL we want
# so serve it instead of rewriting it.
RewriteCond "%{REQUEST_URI}" !^/web-browser-benchmarks-firefox-chrome/
RewriteRule [\./:_a-zA-Z0-9]*\/(web-browse(r|rs)-benchmarks)[a-zA-Z0-9-/\.:?=]*(|html) /web-browser-benchmarks-firefox-chrome/ [R=301,L]