Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Oliver 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
-
Which HOWTO did you use?
-
This one:
http://sme.nightspirit.nl/howto/?id=1&lang=en
Oliver
-
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?
-
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).
-
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
-
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
-
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
-
Where is the howto file on this? The above link doesn't seem to work...
thanks,
flee
-
nevermind, wasn't very much to it!! thanks!
-
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