Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
make INDEX.PHP the same as index.php
Old 12-25-2004, 05:30 PM make INDEX.PHP the same as index.php
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
Heeyz.
I would like my host to send the visitor to the same file no matter whether they type
/GAMES/index.php
or
/games/index.php

Same for changing the index.php

How is this setting called?



At my local php server it doesn't care about the caption.
__________________
Know what to Download

Please login or register to view this content. Registration is FREE
lajkonik86 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-25-2004, 06:13 PM
sdcdesign.co.uk's Avatar
Extreme Talker

Posts: 198
Location: High Wycombe, Buckinghamshire, London
Trades: 0
Hey,

When i'm browsing and have caps lock accidentally on, no matter what case it goes to the same file!

Look:

http://webmaster-TALK.com
http://webmaSTER-talk.com
http://webmaster-TALK.com
HTTP://WEBMASTER-TALK.COM

Whatever case you type it in, it chages it back down to lower case so it should be fine.

Regards,

Sean
__________________
[ Insert witty, yet highly intelligent signature here ]
sdcdesign.co.uk is offline
Reply With Quote
View Public Profile Visit sdcdesign.co.uk's homepage!
 
Old 12-25-2004, 06:49 PM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Trades: 0
Capitalization doesn't extend to domain names...however, on *nix based webservers, the directories and filenames are case-sensative.
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 12-25-2004, 07:16 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
You could use mod_rewrite. However, trying to write rules for every possible situation would take an extensive amount of planning and writing. Other than that, the only other thing I can think of is to switch to a windows based host which is generally more expensive.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Old 12-26-2004, 09:10 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Put your real index.php in the directory 'games'.

Create an uppercase GAMES directory and create a file index.php. In that file, put:

Code:
<script language="JAVASCRIPT">
location.href="http://www.yoursite.com/games/index.php";
</script>
Anyone visiting uppercase will be immediately redirected to lowercase.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 12-27-2004, 05:32 AM
lajkonik86's Avatar
Ultra Talker

Posts: 389
Trades: 0
that could work. Bit anoying though
__________________
Know what to Download

Please login or register to view this content. Registration is FREE
lajkonik86 is offline
Reply With Quote
View Public Profile
 
Old 12-27-2004, 08:50 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Quote:
Originally Posted by lajkonik86
that could work. Bit anoying though
Actually, it will work -- I use it frequently. Any solution that works is less annoying than one that doesn't. I don't quite understand why it is "annoying."

Good luck with your problem.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 12-28-2004, 01:21 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
You could make a custom 404 page and put something like 'Please make sure your URL is all in lower case'. Come to think of it, I think in custom 404 pages you can use scripts to see what people typed in - you might even be able to write a script to redirect them to the correct URL if they typed in uppercase. Not sure how you could do this / if it's even possible in *nix/PHP... I could have a crack at it in Windoze but there would be no need cos it's not case sensitive.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 12-28-2004, 01:45 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
If you use Apache, you could look into mod_speling (Apache 2).
Quote:
Requests to documents sometimes cannot be served by the core apache server because the request was misspelled or miscapitalized.
Other then that, you would have to use mod_rewrite like cptnwinky said, I think. You can create a map file that is changed easily. You can write a Perl script to act as the map, too, but I can't help there.

Quote:
I don't quite understand why it is "annoying."
I believe he means that he would have a bunch of extra directories, all with one file in them. If they are numerous, it can get tedious and "annoying".
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to make INDEX.PHP the same as index.php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40788 seconds with 12 queries