Results 1 to 4 of 4

Thread: How do i get Lowercase links working

  1. #1
    Join Date
    Jan 2009
    Posts
    124

    How do i get Lowercase links working

    Hey Guys,

    Recently i was trying to update my website using a template having stylesheet in it. The problem is that whenever i try to link a particular file or a link with another site. It link get change after uploading the page and all the letters are shown in the lowercase and that particular link doesn't seems to be working anymore. Can any body tell me that how do i get my that particular website link working in lowercase? Does any body have any idea about it? Kindly provide me the correct solution to resolve the above problem.

    Thanks.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: How do i get Lowercase links working

    Try to rename that "Test.temp" file to "test" (note lowercase first letter), and it holds the case. And follow the below code as mention.

    #! /bin/sh

    # testing some ideas for renaming scripts...

    # remove all spaces from the filenames first
    for i in *
    do mv "$i" "${i// /_}"
    done

    # create a list of the directory contents, and turn it into a lowercase file list
    ls -1 $PWD | tr "*/" " " | tr "A-Z" "a-z" > $PWD/list

    # then rename all the folders in the current directory to original_name.temp
    for i in $PWD/*
    do mv "$i" "$i.temp"
    done

    # then, rename the files called original_name.temp to the lowercase name from the list file
    #for i in `ls -1 | tr "*/" " "`
    # do mv "$i" "$(cat list.temp)"
    #done

    # try to rename the files from the list.temp file using a foreach loop
    #for i in *
    # do foreach j=`cat list.temp`
    # mv "$i" "$j"
    # done
    #done

    # or create a new variable which contains the list of the cat'ed list.temp.
    # For this, you'll need two loops
    #for i in *
    # for j in `cat list.temp`
    # do mv "$i" "$j"
    # done
    #done

    # multiple do's within a for...
    for i in *
    do NAME=`cat list.temp` && {
    mv $i $NAME
    }
    done

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How do i get Lowercase links working

    Here is the way the "partial" rewrite rule:

    RewriteRule ^letter/A letter/a
    RewriteRule ^letter/B letter/b
    RewriteRule ^letter/C letter/c
    etc, etc, etc

    Since there's no [L] at the end of each line mod_rewrite will rewrite the first half of the url and move onto the other rules to complete the transaction.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: How do i get Lowercase links working

    There are codes in most GREP implementations that let you convert text from upper to lower case (or vice versa), but I can’t get them to work in InDesign.

    The solution I found was to copy a lower case “s” to the clipboard, then use this expression in the Change To field: ~C$1 (which pastes the unformatted contents of the clipboard, followed by the digit)

Similar Threads

  1. Links not working on Safari 5
    By Gridharan in forum Technology & Internet
    Replies: 6
    Last Post: 14-01-2012, 09:33 PM
  2. JavaScript links are not working
    By DaaruWala in forum Technology & Internet
    Replies: 4
    Last Post: 22-01-2011, 07:38 PM
  3. Why iweb links are not working?
    By Fontaine in forum Technology & Internet
    Replies: 4
    Last Post: 28-05-2010, 02:53 PM
  4. Outlook Express links stopped working in windows 7
    By Hebrew in forum Windows Software
    Replies: 5
    Last Post: 05-02-2010, 05:45 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,869,088.80205 seconds with 17 queries