Welcome to WebmasterWorld Guest from 34.229.113.106

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Restricted set of directives in .htaccess

     
10:30 pm on Aug 28, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 14, 2002
posts:1192
votes: 0


Today I created a subdirectory on my web site, where I have no control other than through .htaccess. I did not want to have an index.html file, but I wanted people to be able to go to my.site.com/my-directory and get somefile.html.

The obvious solution seemed to be "DirectoryIndex somefile.html" but when I uploaded a .htaccess file with nothing but that line I got a 500 error with either my.site.com/my-directory or my.site.com/my-directory/somefile.html.

Am I right in assuming that the server admin has restricted the directives I can use in my .htaccess? Is that common?

The solution turned out to be simple, I put a "RedirectPermanent index.html somefile.html" :)

11:47 pm on Aug 28, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:May 14, 2003
posts:376
votes: 0


it is possible... if it is an apache v1.3.* server, see [httpd.apache.org ] to be sure... it is a common thing to do to prevent hosted users from being able to do some not so nice things or to figure out more about the server installation then they need to know to serve their pages... using the above url, drop back to /docs/ for all the documentation... everything is covered...