Hello.
I have multiple domains on the same web server plan and I was wondering how I could create a diffrent 404 page for each domain.
Creating a 404 page for a different domain on the same machine shared by others.
-
- New to forums
- Posts: 4
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Tue Sep 13, 2016 9:28 pm
Re: Creating a 404 page for a different domain on the same machine shared by others.
This is possible, but will require you create multiple .htaccess files for each domain (each domain also needs to be directed into a separate folder). If they are just create a new .htaccess and add to each one.
Code: Select all
ErrorDocument 404 /404.html
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
Re: Creating a 404 page for a different domain on the same machine shared by others.
Thank you for the help.kraze wrote:This is possible, but will require you create multiple .htaccess files for each domain (each domain also needs to be directed into a separate folder). If they are just create a new .htaccess and addto each one.Code: Select all
ErrorDocument 404 /404.html
- SimbaTheKing
- New to forums
- Posts: 6
- Joined: Sat Sep 17, 2016 3:42 pm
Re: Creating a 404 page for a different domain on the same machine shared by others.
You can also accomplish this by editing your httpd.conf and editing the ErrorFile for the whole webserver. If my memory serves me correctly