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 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.
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
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.
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.