How do I make a 404 page with plusnet webspace
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- How do I make a 404 page with plusnet webspace
How do I make a 404 page with plusnet webspace
24-12-2020 11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi, I have got a website running in the Plusnet webspace that I originally got with my Freenetname account back in 1999! Out of curiosity I ran a website checker service across my site and it suggested that I setup a 404 page. I can write the page OK but how and where do I upload it so that it will work?
Re: How do I make a 404 page with plusnet webspace
24-12-2020 6:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Strangely, I thought that a 404 error notice was generated by the server/search engine, when it could not find the URL pointed to....
But there again... What do I know ? ? ? ? not a lot ! !
Re: How do I make a 404 page with plusnet webspace
24-12-2020 6:52 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: How do I make a 404 page with plusnet webspace
25-12-2020 8:37 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@B737 I assume that Plusnet uses Apache? If they do then:
Create your page the using your editor of choice and store it the document root for the server e.g. /var/www/html/my404.html
Modify your apache conf file and for the server or virtual host add the following :
// Set page redirection
ErrorDocument 404 /my404.html
// Prevent page from being requested directly
<Files "my404.html">
<If "-z %{ENV:REDIRECT_STATUS}">
RedirectMatch 404 ^/my404.html$
</If>
</Files>
You can add the above for each custom page you create e.g. 500, 502-4 this isn't limited to 404.
Re: How do I make a 404 page with plusnet webspace
25-12-2020 9:27 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@Mook Thats great info but I get stuck at modifying the Apache config file. I dont know where to find it or if I can change it. With Plusnet webspace the only area we get access to is /public_html/ and these contain the files we upload for our websites. I guess my question is within the area I can acess is there any way I can get the Plusnet (Apache?) server to point to a page of my choice in the event of a "404 page not found error" For one thing I would put the google analytics code on it to see how often it was happening and where from etc.
Re: How do I make a 404 page with plusnet webspace
25-12-2020 9:40 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Now that I can't answer @B737 but there are others on here that may have the information you need but you may need to wait until tomorrow for a reply.
Re: How do I make a 404 page with plusnet webspace
25-12-2020 9:57 AM - edited 25-12-2020 9:58 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have uploaded a .htaccess file with the following line
ErrorDocument 404 /404page.htm
Where 404page.htm was the 404 page I wrote but it still didnt work.
Re: How do I make a 404 page with plusnet webspace
25-12-2020 10:35 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: How do I make a 404 page with plusnet webspace
29-12-2020 2:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I tried adding that line but it still didn't work.
Any more ideas?
Re: How do I make a 404 page with plusnet webspace
30-12-2020 8:44 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You have to restart the Web Server for these changes to take effect so you'll need to find out how this is done in your environment @B737.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- How do I make a 404 page with plusnet webspace