Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

RewriteRule not working for anchors in IE

Posted on 2011-02-10
9
Medium Priority
?
633 Views
Last Modified: 2013-12-08
We are using the following rule in Apache.

We have issue in IE, it's going to "ProgramResource" page but not under "eCPS Culinary" section. But in Firefox it's working fine!

RewriteEngine on

RewriteCond %{HTTP_HOST} ^ecps-culinary.com$
RewriteRule ^/$ http://www.ecps-culinary.com/wps/portal/eCPS/root/ProgramResources/#ecps [L,R,NE]

RewriteCond %{HTTP_HOST} ^www.ecps-culinary.com$
RewriteRule ^/$ http://www.ecps-culinary.com/wps/portal/eCPS/root/ProgramResources/#ecps [L,R,NE]
0
Comment
Question by:royalcyber
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 5

Expert Comment

by:SimonDard
ID: 34868828
When Firefox finds a server is not responding, it automatically tries a few variations by adding a few commonly used prepends, of which www is one. For example: when your trying to connect to http://site.com and it's not responding because the server you're trying to connect to is not configured to respond to that name, Firefox will try to connect to http://www.site.com . Other browsers however, will not. Maybe that's part of the problem?
0
 
LVL 13

Expert Comment

by:dsmile
ID: 34869732
Try

RewriteEngine on

RewriteCond %{HTTP_HOST} ^ecps-culinary.com$
RewriteRule ^/$ http://www.ecps-culinary.com/wps/portal/eCPS/root/ProgramResources#ecps [L,R,NE]

RewriteCond %{HTTP_HOST} ^www.ecps-culinary.com$
RewriteRule ^/$ http://www.ecps-culinary.com/wps/portal/eCPS/root/ProgramResources#ecps [L,R,NE]
0
 

Author Comment

by:royalcyber
ID: 34872360
Thanks dsmile, I tried your suggestion but still its give teh same result in IE.

Please let me know if you have nay other suggestions. Thanks,
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 27

Accepted Solution

by:
BigRat earned 2000 total points
ID: 34905917
With pure C code and sockets I did an HTTP GET request : http://ecps-culinary.com and got back :-

HTTP/1.1 302 Found
DATE:Wed, 16 Feb 2011 11:59:00 GMT
SERVER:IBM_HTTP_Server
LOCATION:http://www.ecps.ca/wps/portal/eCPS/root/ProgramResources#ecps
VARY:Accept-Encoding
CONTENT-ENCODING:gzip
CONTENT-LENGTH:261
CONNECTION:close
CONTENT-TYPE:text/html; charset=iso-8859-1

which is what you'd expect from Apache, the redirect, EXCEPT, that the web site to which we are going is in Canada!

So when I resolve the two addresses involved I get :-

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\rd\IDE>nslookup ecps.ca
Nicht autorisierte Antwort:
Name:    www.ecps.ca
Address:  174.143.231.50

C:\rd\IDE>nslookup ecps-culinary.com
Nicht autorisierte Antwort:
Name:    ecps-culinary.com
Address:  174.143.231.50

which are the same, so it is no wonder that the redirect goes to the wrong address!

However if you resolve the www addresses :-

C:\rd\IDE>nslookup www.ecps-culinary.com
Nicht autorisierte Antwort:
Name:    www.ecps-culinary.com
Address:  174.143.231.50

C:\rd\IDE>nslookup www.epcs.ca
Nicht autorisierte Antwort:
Name:    www.epcs.ca
Address:  216.8.179.24

So somewhere there's a DNS entry which is wrong.
0
 
LVL 27

Expert Comment

by:BigRat
ID: 34905929
PS: Anyone of these HTTP Spy programs, like httpLook, can show you exactly what the server is sending, which is far more valuable than relying on browser behavior which varies from release to release.
0
 
LVL 27

Expert Comment

by:Tolomir
ID: 35422466
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question