Koozali.org: home of the SME Server

.htaccess usage with Ver 5.5

Oliver

.htaccess usage with Ver 5.5
« on: February 13, 2003, 06:29:01 PM »
Anybody sucessfully changed their Apache System to use .htaccess files to redirect? I tried a how-to that was published here, but it didn´t worked.
My version is e-smith 5.5.

Thanx Oliver

Thor Anthrax

Re: .htaccess usage with Ver 5.5
« Reply #1 on: February 13, 2003, 06:32:19 PM »
Which HOWTO did you use?

Oliver

Re: .htaccess usage with Ver 5.5
« Reply #2 on: February 13, 2003, 07:04:58 PM »

Thor Anthrax

Re: .htaccess usage with Ver 5.5
« Reply #3 on: February 13, 2003, 08:23:57 PM »
In that case... I installed that file too and I know for sure that part works. Are you sure your .htaccess file was all right and uploaded in the correct way?

Thor Anthrax

Re: .htaccess usage with Ver 5.5
« Reply #4 on: February 13, 2003, 08:24:58 PM »
Forgot to ask...

Why are you using .htaccess to redirect? php can do it too (and you don't have to install anything for it).

Oliver

Re: .htaccess usage with Ver 5.5
« Reply #5 on: February 14, 2003, 02:11:05 PM »
Problem is, that I want to catch access to non-existing directories and link them to another site. Any link inside a non-existing link should be forwarded too.
I don´t know how this should work with php. If anybody could tell me, you would make me happy.

Thanks

Thor Anthrax

Re: .htaccess usage with Ver 5.5
« Reply #6 on: February 14, 2003, 03:03:56 PM »
Ok, you wanna use .htaccess :)

I use this for error-handling:

#    "400 Bad request"
ErrorDocument 400 /400.html
#    "401 Authorization required"
ErrorDocument 401 /401.html
#    "403 Forbidden"
ErrorDocument 403 /403.html
#    "404 Not found"
ErrorDocument 404 /404.html
#    "500 Internal server error"
ErrorDocument 500 /500.html

Should work for you too... adjust to fit your needs

Oliver

Re: .htaccess usage with Ver 5.5
« Reply #7 on: February 16, 2003, 03:47:55 PM »
I´m sorry, but I don´t excatlly know what you mean with this. htaccess doesn´t seem to work at all. What privileges and owner do I need for the .htaccess-files? Maybe that is the problem. Mine have root as owner.

Thanks Oliver

Franco

Re: .htaccess usage with Ver 5.5
« Reply #8 on: February 25, 2003, 01:28:16 AM »
Where is the howto file on this?  The above link doesn't seem to work...

thanks,
flee

Franco

Re: .htaccess usage with Ver 5.5
« Reply #9 on: February 25, 2003, 02:37:53 AM »
nevermind, wasn't very much to it!!  thanks!

Joachim Koenen

Re: .htaccess usage with Ver 5.5
« Reply #10 on: March 13, 2003, 12:46:53 AM »
you have to change the AllowOverride directive e.g. to All in the httpd.conf using the template method for the directories you want to use .htaccess
http://httpd.apache.org/docs/mod/core.html#allowoverride