web page cannot find error
8 posts
• Page 1 of 1
web page cannot find error
Hi,
Source Url: https://at.1234.com/try/1234/ABC Library/Credentials and Experience/1234 Experience Industrial abc.pptx
Redirect Url: https://at.1234.com/capital/GLibrary/15 ... 299c087bae
Rule is -
RewriteCond %{HTTP:Host} ^at\.1234\.com$ [NC]
RewriteRule ^try/1234/ABC\ Library/Credentials\ and\ Experience/1234\ Experience\ Industrial\ abc\.pptx$ /capital/GLibrary/15af43f7\%2D1625\%2D4381\%2D885c\%2D55299c087bae [NC,R=301,L,NE]
above rule working Dev and QA environment, after deployed Prod environment some times working and some times giving web page cannot find error.
Pls tell me any synax error on above rule(In Prod we are having 2000 query string rules).
Note: These all 2000 rules and my recent above rule redirect to same library but DocumentSet is diffrent.
any help you could give would be appricated.
Regards,
Galisetti
Source Url: https://at.1234.com/try/1234/ABC Library/Credentials and Experience/1234 Experience Industrial abc.pptx
Redirect Url: https://at.1234.com/capital/GLibrary/15 ... 299c087bae
Rule is -
RewriteCond %{HTTP:Host} ^at\.1234\.com$ [NC]
RewriteRule ^try/1234/ABC\ Library/Credentials\ and\ Experience/1234\ Experience\ Industrial\ abc\.pptx$ /capital/GLibrary/15af43f7\%2D1625\%2D4381\%2D885c\%2D55299c087bae [NC,R=301,L,NE]
above rule working Dev and QA environment, after deployed Prod environment some times working and some times giving web page cannot find error.
Pls tell me any synax error on above rule(In Prod we are having 2000 query string rules).
Note: These all 2000 rules and my recent above rule redirect to same library but DocumentSet is diffrent.
any help you could give would be appricated.
Regards,
Galisetti
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: web page cannot find error
Do you have load balancing in prod environment?
Regards
Andrew
Regards
Andrew
- lalitmishra1988
-
- Posts: 16
- Joined: 29 Apr 2013, 08:10
Re: web page cannot find error
Yes, we have 3 APP servers and 3 WFE servers and we have installed ISAPI tool on 2 WFE servers; we are using same httpd.conf file and rules in both servers. Basically, we are using this tool and redirection for long time and this was working fine till we deployed new rules which is mentioned in the below thread.....
we just want to confirm that the rule which we mentioned is syntactically and logically right ???
Or, there is any other dependencies we need to look into it??
we just want to confirm that the rule which we mentioned is syntactically and logically right ???
Or, there is any other dependencies we need to look into it??
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: web page cannot find error
Well, the spaces in the pattern don't look good. Here's a documentation that describes regexps and spaces in them - http://www.helicontech.com/isapi_rewrit ... teRule.htm
p.s. are you config in the shared folder?
Regards
Andrew
p.s. are you config in the shared folder?
Regards
Andrew
- lalitmishra1988
-
- Posts: 16
- Joined: 29 Apr 2013, 08:10
Re: web page cannot find error
"The spaces in the pattern don't look good.".....Can you expalin this line little bit more because same rule is working fine in dev environment.
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: web page cannot find error
The syntax of a rule is "RewriteRule" + [pattern] + [space] + [landing URL]. TO correctly parse a rule there's only one space accepted and it divides the pattern and the landing URL.
So in your case [space] is a special character.
I'm more surprised that it works in testing environment, rather than surprised that it doesn't work in production. What are the differences between testing and production(OS, IIS, etc)?
So in your case [space] is a special character.
I'm more surprised that it works in testing environment, rather than surprised that it doesn't work in production. What are the differences between testing and production(OS, IIS, etc)?
- lalitmishra1988
-
- Posts: 16
- Joined: 29 Apr 2013, 08:10
Re: web page cannot find error
Yes, in my case space is a special character. So,my rule is correct at this point of time?
There is no difference between QA and Prod.
There is no difference between QA and Prod.
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: web page cannot find error
it's theoretically correct, but I'd suggest using '\s' instead of spaces in the pattern(as described in documentation).
Regards
Andrew
Regards
Andrew
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests