Closed Thread
Results 1 to 6 of 6

Thread: ignore capital letters in address

  1. #1
    armin.makovec88 is offline x10Hosting Member armin.makovec88 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    7

    ignore capital letters in address

    Is there any way to make server ignore the capital letters in address bar? It would be really helpful. :)

    Thanks in advance.

  2. #2
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: ignore capital letters in address

    Could you give an example url? I just clicked through your site and there are no uppercase letters in any of your links.

    The only thing I could think of about your question is this: linux servers are case sensitive. So index.html, Index.html, and INDEX.html are three different file names to the server. x10hosting runs completely on linux.

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: ignore capital letters in address

    There is a module for Apache, mod_speling that will match requests and files ignoring case (and will 'correct' for one spelling error, ie a request for mipage.html will match the actual file mypage.html). It is not enabled on x10hosting and I doubt that they would enable it (it would break too many things).

    The other way, a bit of a hack, would be to use .htaccess to route all requests through a php file, ie FooBar.html would be sent to normalize.php?f=FooBar.html. normalize.php would then look for the file, ignoring case. Then either issue a redirect or include/output the contents of the file. Lot of work.

    Easiest is to just make sure all your files are lowercase. Then people will get used to entering URLs in all lowercase and you won't have a problem.
    Last edited by descalzo; 07-08-2011 at 08:29 AM.
    Nothing is always absolutely so.

  4. #4
    armin.makovec88 is offline x10Hosting Member armin.makovec88 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    7

    Cool Re: ignore capital letters in address

    i have sign up to a forum (phpfreaks.com) and since at first i have been testing PHP & JavaScript Real-Time Server clock at adress http://cybital.cu.cc/Clock.php, but after that I changed the name several times and return back to original. But I forget to make first letter capital. Since now I have posted both links (with capital and non-capital), I don't want to make trashy server with both files And since my site is still under construction, it would be useful for my future upgrades to it xD.

    That's it. However, any help on make one, descalzo, would be appreciated (any tutorial or something. Of course the code itself woulf be ideal, but ...).
    Oh, now the right link is http://cybital.cu.cc/clock.php .
    Last edited by armin.makovec88; 07-08-2011 at 02:49 PM.

  5. #5
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: ignore capital letters in address

    To redirect a request from Clock.php to clock.php:

    In .htaccess add:
    Code:
    RewriteEngine on
    RewriteBase /
    RewriteRule Clock.php  clock.php
    From now on, make all directories and file names lower case (and do not use spaces in names). Makes life much easier.
    Nothing is always absolutely so.

  6. #6
    armin.makovec88 is offline x10Hosting Member armin.makovec88 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    7

    Re: ignore capital letters in address

    Thanks, it works like a charm .
    And yes, I'll keep that in mind xD
    Last edited by armin.makovec88; 07-09-2011 at 03:02 AM.

Closed Thread

Similar Threads

  1. Canada: Internet Piracy Capital?
    By whitebus in forum Computers & Technology
    Replies: 7
    Last Post: 06-07-2009, 03:03 PM
  2. Internet Chain Letters?
    By mcklovin in forum Crossfire
    Replies: 40
    Last Post: 08-26-2008, 07:26 AM
  3. Chain Letters
    By RealisationInc in forum Off Topic
    Replies: 3
    Last Post: 10-30-2006, 02:52 PM
  4. omg i love Chain letters.
    By Skyline4life in forum Off Topic
    Replies: 4
    Last Post: 07-04-2005, 12:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers