+ Reply to Thread
Results 1 to 7 of 7

Thread: Uppercase links to lowercase

  1. #1
    driveflexfuel is offline x10 Sophmore driveflexfuel is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    159

    Uppercase links to lowercase

    The first version of my site had some directories and files that contained Capital letters. The new site contains all lowercase letters. I am looking for a way besides a using a huge list in my .htaccess file.

    Is it possible to use a rewrite or to make capital an lowercase the same link such as

    www.site.com/store/index.php
    and
    www.site.com/Store/Index.php
    are the same.

  2. #2
    brunoais is offline x10 Sophmore brunoais is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    111

    Re: Uppercase links to lowercase

    I can only think of changing the name of the folders/files...

  3. #3
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: Uppercase links to lowercase

    what do you want the desired effect to be? you can change the URL easily, but are you trying to change the HTML code?

    use the [NC] RewriteRule flag to make things case insensitive


    Or possibly, could this work for you:

    RewriteEngine on
    RewriteMap u2l int:tolower
    RewriteRule ^/(.*)$ /${u2l:$1}
    Last edited by vol7ron; 12-19-2008 at 12:03 PM.
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


  4. #4
    driveflexfuel is offline x10 Sophmore driveflexfuel is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    159

    Re: Uppercase links to lowercase

    Ill use this directory as an example

    I have a list of vehicle files such as
    /vehicles/Ford.php
    /vehicles/Chevrolet.php

    These are now
    /store/vehicles/ford.php
    /store/vehicles/chevrolet.php

    I used the 301 redirect to point the vehicles directory to the proper location but i do not want to create a redirect for the 120 manufacturers. This is not the only directory that has gone from uppercase to lowercase. And the new site is dependent on lowercase links in the php coding.

    I am not the best at working with htaccess so an example would be greatly appreciated.

  5. #5
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: Uppercase links to lowercase

    example i gave should work, i'm having some issues though in testing it on x10 because this can't go in the .htaccess and must go in the httpd.conf
    Last edited by vol7ron; 12-19-2008 at 12:30 PM.
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


  6. #6
    driveflexfuel is offline x10 Sophmore driveflexfuel is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    159

    Re: Uppercase links to lowercase

    I tried it and all i got was a 500 error

  7. #7
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: Uppercase links to lowercase

    yeah you'll have to talk to an admin about the httpd.conf, usually this is restricted on public hosts.

    unfortunately, the only other way is to actually do each one in .htaccess, i think.
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


+ Reply to Thread

Similar Threads

  1. Generating hundreds of links in few days
    By nonte in forum Link Exchange
    Replies: 11
    Last Post: 11-09-2008, 07:55 AM
  2. Ucash.in - Earn Money from links.
    By fabionj in forum Earning Money
    Replies: 1
    Last Post: 03-30-2008, 05:49 PM
  3. Replies: 1
    Last Post: 03-06-2008, 06:15 AM
  4. Replies: 0
    Last Post: 03-05-2008, 08:30 PM
  5. Urgent help please!
    By retro-bliss in forum Free Hosting
    Replies: 2
    Last Post: 10-25-2007, 03:24 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