Forums

Upper Lower Case Problem on Unix (6 posts)

  1. lochnesstony
    Member
    Posted 5 months ago #

    I set up my blog under the name LochNessTony on my http://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 http://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?

  2. 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 http://www.loch-ness.com/LochNessTony to get people to http://www.loch-ness.com/lochnesstony/.

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

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^LochNessTony/ http://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.

  3. lochnesstony
    Member
    Posted 5 months ago #

    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/ http://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

  4. lochnesstony
    Member
    Posted 5 months ago #

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

  5. I'm going to remove that code meantime.

    That's the right thing to do, a bad URL is better than inaccessible site! :D

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

  6. lochnesstony
    Member
    Posted 5 months ago #

    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.

Reply

You must log in to post.

About this Topic