Solved

WEbpage Redirection when folder  name is capitalized

Posted on 2007-04-05
5
211 Views
Last Modified: 2013-12-04
I created a folder on a website that used two capital letters in the folder name. Ie.http://www.test.com/TestFolder/index.html and now want to make another folder without the uppercase. Ie. http://www.test.com/testfolder/index.html but i cannot create that folder again. Is there away i can have the page redirect if someone put http://www.test.com/testfolder/index.html to automatically go to http://www.test.com/TestFolder/index.html ?
0
Comment
Question by:cslt
  • 2
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
mrichmon earned 125 total points
ID: 18861693
It sounds like your server is case insensitive.  Therefore you cannot have two folders of the same name with only case differences.

You could end up doing things to lowercase the path, but it is really not worth it.

Here is some info:
http://en.wikipedia.org/wiki/URL_normalization
0
 
LVL 16

Expert Comment

by:kiranvj
ID: 18862682
if the server is case insensitive the server will handle both ur URLs as same and will show the index.html in TestFolder

kiranvj
0
 

Author Comment

by:cslt
ID: 18864358
I found out that the server is case sensitive and the vendor already has printed material with the uppercase URL. Until I move the site to a new server, is three is way to fix this issue with some form of a script?
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 18864621
If the server is case sensitive then you should be able to have TestFolder created even if testfolder already exists.  If not then it is case insensitive.
0
 
LVL 16

Expert Comment

by:kiranvj
ID: 18864733
thats right mrichmon, most probably its a windows server
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Find out what you should include to make the best professional email signature for your organization.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

830 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