310 (net::ERR_TOO_MANY_REDIRECTS
11 posts
• Page 1 of 1
310 (net::ERR_TOO_MANY_REDIRECTS
Hello,
Dynamic URL is http://website/?catid=275
Friendly URL is http://website/index/catid/275/
RewriteEngine on
RewriteRule index/(.*)/(.*)/$ /index.asp?$1=$2
RewriteCond %{QUERY_STRING} ^catid=([0-9]+)$ [NC]
RewriteRule ^/(.*)$ /index/catid/%1/? [NC,R=301,L]
Resulting to Error 310 (net::ERR_TOO_MANY_REDIRECTS)
What I'm doing wrong? I wish both URLs work..
Please advice.
Dynamic URL is http://website/?catid=275
Friendly URL is http://website/index/catid/275/
RewriteEngine on
RewriteRule index/(.*)/(.*)/$ /index.asp?$1=$2
RewriteCond %{QUERY_STRING} ^catid=([0-9]+)$ [NC]
RewriteRule ^/(.*)$ /index/catid/%1/? [NC,R=301,L]
Resulting to Error 310 (net::ERR_TOO_MANY_REDIRECTS)
What I'm doing wrong? I wish both URLs work..
Please advice.
Re: 310 (net::ERR_TOO_MANY_REDIRECTS
Please try to fix it like this:
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^catid=(\d+)$ [NC]
RewriteRule ^/?$ /index/catid/%1/? [NC,R=301,L]
RewriteRule ^index/catid/([^/]+)/$ /\?catid=$1 [NC,L]
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^catid=(\d+)$ [NC]
RewriteRule ^/?$ /index/catid/%1/? [NC,R=301,L]
RewriteRule ^index/catid/([^/]+)/$ /\?catid=$1 [NC,L]
Re: 310 (net::ERR_TOO_MANY_REDIRECTS
Anton wrote:Please try to fix it like this:
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^catid=(\d+)$ [NC]
RewriteRule ^/?$ /index/catid/%1/? [NC,R=301,L]
RewriteRule ^index/catid/([^/]+)/$ /\?catid=$1 [NC,L]
Anton, it doesnt' work.
http://website/index/catid/275/ resulted in 301 Too Many Redirects..
Any thoughts?
Thanks.
Re: 310 (net::ERR_TOO_MANY_REDIRECTS
Hello,
Can you please make sure you don't have ISAPI_Rewrite filter registered twice: on global (server) level and for the site. If that's the case, please leave the filter on global level only.
Can you please make sure you don't have ISAPI_Rewrite filter registered twice: on global (server) level and for the site. If that's the case, please leave the filter on global level only.
Re: 310 (net::ERR_TOO_MANY_REDIRECTS
RewriteCond %{QUERY_STRING} ^catid=(\d+)&linkid=(\d+)&title=(\.*)$ [NC]
RewriteRule ^/?$ /index/catid/%1/linkid/%2/title/%3/? [NC,R=301,L]
RewriteRule ^index/catid/([^/]+)/linkid/([^/]+)/title/(.*)/$ /\?catid=$1&linkid=$2&title=$3 [NC,L]
#
RewriteCond %{QUERY_STRING} ^catid=(\d+)&linkid=(\d+)$ [NC]
RewriteRule ^/?$ /index/catid/%1/linkid/%2/? [NC,R=301,L]
RewriteRule ^index/catid/([^/]+)/linkid/([^/]+)/$ /\?catid=$1&linkid=$2 [NC,L]
Please advice: first block of rules doesn't work (with title=any-alpha-numeric)
Second block works fine. What's wrong?
RewriteRule ^/?$ /index/catid/%1/linkid/%2/title/%3/? [NC,R=301,L]
RewriteRule ^index/catid/([^/]+)/linkid/([^/]+)/title/(.*)/$ /\?catid=$1&linkid=$2&title=$3 [NC,L]
#
RewriteCond %{QUERY_STRING} ^catid=(\d+)&linkid=(\d+)$ [NC]
RewriteRule ^/?$ /index/catid/%1/linkid/%2/? [NC,R=301,L]
RewriteRule ^index/catid/([^/]+)/linkid/([^/]+)/$ /\?catid=$1&linkid=$2 [NC,L]
Please advice: first block of rules doesn't work (with title=any-alpha-numeric)
Second block works fine. What's wrong?
Re: 310 (net::ERR_TOO_MANY_REDIRECTS
If you want the 'title' in the first block to catch any alphanumeric, it should look like this:
RewriteCond %{QUERY_STRING} ^catid=(\d+)&linkid=(\d+)&title=(\w+)$ [NC]
RewriteRule ^/?$ /index/catid/%1/linkid/%2/title/%3/? [NC,R=301,L]
RewriteRule ^index/catid/([^/]+)/linkid/([^/]+)/title/(.*)/$ /\?catid=$1&linkid=$2&title=$3 [NC,L]
Please try.
RewriteCond %{QUERY_STRING} ^catid=(\d+)&linkid=(\d+)&title=(\w+)$ [NC]
RewriteRule ^/?$ /index/catid/%1/linkid/%2/title/%3/? [NC,R=301,L]
RewriteRule ^index/catid/([^/]+)/linkid/([^/]+)/title/(.*)/$ /\?catid=$1&linkid=$2&title=$3 [NC,L]
Please try.
Re: 310 (net::ERR_TOO_MANY_REDIRECTS
Thank you very much.
Probably simple question for you- how to rewrite ?lang=rus& to /lang/rus/ and vice versa?
URL exact: ?lang=rus&
Please advice.
Probably simple question for you- how to rewrite ?lang=rus& to /lang/rus/ and vice versa?
URL exact: ?lang=rus&
Please advice.
Re: 310 (net::ERR_TOO_MANY_REDIRECTS
Please try the following:
RewriteCond %{QUERY_STRING} ^lang=(\w+)&$ [NC]
RewriteRule ^/?$ /lang/%1/? [NC,R=301,L]
RewriteRule ^lang/(\w+)/$ /\?lang=$1& [NC,L]
RewriteCond %{QUERY_STRING} ^lang=(\w+)&$ [NC]
RewriteRule ^/?$ /lang/%1/? [NC,R=301,L]
RewriteRule ^lang/(\w+)/$ /\?lang=$1& [NC,L]
11 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 25 guests