Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to accept double slashes in apache

Posted on 2009-04-14
4
Medium Priority
?
524 Views
Last Modified: 2013-12-24
Hi,

We have an apache web server which redirects requests to a weblogic server. We are running into problems, when trying to get to resource when using "//" in the URLs.

For example - we have a URL -
https://sue.aoe.com/abcd/calendar//sqaure.gif or
http://sue.aoe.com/abcd/calendar//sqaure.gif

when we try to hit the URL we get an -

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

We are using Apache/2.0.52 (Red Hat) Server

Can you suggest if there is a way, by which we can fix apache to handle this URL. Is there something in httpd.conf file, that we can use?
0
Comment
Question by:LordSM
[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
  • 3
4 Comments
 
LVL 6

Expert Comment

by:James Looney
ID: 24144046
My apache always accepts double slashes as single slashes.

I did a quick google and found this post (http://www.webmasterworld.com/apache/3412891.htm) which states:

apache treats multiple slashes as single slashes.
You can 301 redirect double-slashed URLs to the correct URL using mod_rewrite in .htaccess:

rewriteCond %{REQUEST_URI} ^(.*)//+(.*)$
rewriteRule / http://www.example.com/$1/$2 
 
Either of these snippets will replace two or more contiguous slashes with a single slash.
0
 

Author Comment

by:LordSM
ID: 24144088
can we modify something in httpd.conf file to do the same thing. please let me know. also, where do I modify this .htaccess file, I dont think I have it under the web server directories
0
 

Author Comment

by:LordSM
ID: 24160599
any comments on this question?
0
 

Accepted Solution

by:
LordSM earned 0 total points
ID: 24297965
No reasonable answer provided yet
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
This article is written by John Gates, CISSP. Gates, the SNUG President-Elect, currently holds the position of Manager of Information Systems at Lake Park High School in Roselle, Illinois.
Saved searches can save you time by quickly referencing commonly searched terms on any topic. Whether you are looking for questions you can answer or hoping to learn about a specific issue, a saved search can help you get the most out of your time o…
Where to go on the main page to find the job listings. How to apply to a job that you are interested in from the list that is featured on our Careers page.

715 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