• I set up my blog under the name LochNessTony on my https://www.loch-ness.com website and unfortunately I forgot that you cannot use caps in file and folder names on Unix servers.

    I eventually managed to get the blog moved from /LochNessTony to /lochnesstony but the trouble is that when I filled in the section to promote it to websites I gave the old address so my blog is not being seen by search engines.

    However, the biggest problem is the subscribers who are still being given https://www.loch-ness.com/LochNessTony as the link instead of all lower case so all they get is a 404 page not found error.

    I’ve tried creating a LocNessTony directory and putting a redirect in it but it won’t allow a secend directory with the same combination of letters.

    Does any one have fix or am I going to have to scrap the entire blog and start again with a new name and directory?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    unfortunately I forgot that you cannot use caps in file and folder names on Unix servers.

    Sure you can, done all the time and it should work for you too.

    But on to your problem:

    You want this https://www.loch-ness.com/LochNessTony to get people to https://www.loch-ness.com/lochnesstony/.

    On your webserver’s root directory where https://www.loch-ness.com/index.html lives, add these lines to your .htaccess file.

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^LochNessTony/ https://www.loch-ness.com/lochnesstony/$1 [R=301,L]
    </IfModule>

    If you’ve got mod_rewrite enabled for your server that should fix you up.

    Thread Starter lochnesstony

    (@lochnesstony)

    I tried that and now get: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

    This is the entire htaccess file:

    # -FrontPage-
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^LochNessTony/ https://www.loch-ness.com/lochnesstony/$1 [R=301,L] </IfModule>
    AuthGroupFile /home/users/web/b2088/as.lochnesscom/_vti_pvt/service.grp

    I added your code after the last </limit> bracket

    Thread Starter lochnesstony

    (@lochnesstony)

    Further to that the site can no longer be accessed at all so I’m going to remove that code meantime.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m going to remove that code meantime.

    That’s the right thing to do, a bad URL is better than inaccessible site! ??

    That .htaccess addition should of helped but obliviously didn’t; you may be better off starting again.

    Thread Starter lochnesstony

    (@lochnesstony)

    Well you put me on the right track. I forced the server to allow me to create a LochNessTony directory and then I was able to just redirect one to the other.

    Thanks for pointing me in the right direction even if it ended up as a sort of workaround.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Upper Lower Case Problem on Unix’ is closed to new replies.