Resolved 404 Not Found

Status
Not open for further replies.

trixworl

New Member
Messages
5
Reaction score
0
Points
1
Your account did not transfer properly. I've requested an admin fix this for you.

I am having a similar issue, but my pages show up with a 404 error and that the server can't be found.

2020-07-07 01:28:31.613691 [INFO] [907930] [46.229.168.162:42528#APVH_www.trixworld.x10host.com] File not found [/home/trixworl/domains/trixworld.x10host.com/public_html/404.shtml]

This has been going on for two days. I tried help with another post that says to give it time. My pages worked until recently. I can't even get the links any longer.
 

trixworl

New Member
Messages
5
Reaction score
0
Points
1
I did change it and yet I still get the error.
 

Attachments

  • Screenshot_20200707-154843_Chrome.jpg
    Screenshot_20200707-154843_Chrome.jpg
    172.4 KB · Views: 6

trixworl

New Member
Messages
5
Reaction score
0
Points
1
You're right that it works fine here, however I have that as a link on another page. I can open that address straight up as it is. But when I click the link, it automatically goes to https when opening from clicking the link.

It is one of many pages.

I will try the .htaccess file, but where would I put that and how? I'm okay with manipulating html coding, but I can't say that I am tech savy enough to know where to place that or how to go about it through my domain/direct admins open panel.
 

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
Points
63
It sounds like the software you're using is generating https links. Make sure if you're using wordpress, joomla, etc., etc. that it knows not to redirect to https. If you can provide more information, we can be more specific.
 

spacresx

Community Advocate
Community Support
Messages
2,183
Reaction score
195
Points
63
the htaccess file should go in your "/domains/your_domain/public_html" folder.
just as an example in mine this is what i have:

<Files .htaccess>
Order deny,allow
Deny from all
</Files>
#
#---------
# Robots.
#---------
Header set X-Robots-Tag "noarchive, nofollow, noimageindex, noindex, nosnippet"
#
Options +Indexes
DirectoryIndex index.php
IndexIgnore *

you probably dont want the robots part, as i block them on my site.
and you may want to change the DirectoryIndex if you have index.php

Also as garrettroyce states,
make sure there is nothing like a cms that directs to https
as x10 free dont permit https. it can usually be found in the config file
if you have one.
 
Last edited:

spacresx

Community Advocate
Community Support
Messages
2,183
Reaction score
195
Points
63
@ garrettroyce
the alert said it was my post (but it wasnt mine)
i was just trying to answer the post as no one else was replying.
 

trixworl

New Member
Messages
5
Reaction score
0
Points
1
It sounds like the software you're using is generating https links. Make sure if you're using wordpress, joomla, etc., etc. that it knows not to redirect to https. If you can provide more information, we can be more specific.


I haven't used wordpress or any of those softwares. I was on the old x10 where I uploaded html layouts and created links so other people could view them. I didn't add anything since that move, just knew my html pages were moved to a public_html file and that is where I uploaded them. If there is something I can install that was like the basic x10hosting then I'm down for it.

I would just download a file and there was an index page where it auto created a link that was viewable to others in that file manager before.

I don't seem the have a .htaccess file at all. I would upload what my domain public_html area looks like to show you, but it is supposedly too big to load or there is not an allowed extension.

I don't mind talking more in depth about this. As I rather like being able to make my own pages and uploading them.
 

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
Points
63
You'll have to make sure all of your internal links do not specify https or specifically do specify http. Or, you can force this to happen with .htaccess. I'll do the old fashioned way first:

Code:
<a href="https://mywebsite.example/somepage.html> <!-- bad -->
<a href="somepage.html"> <!-- good -->
<a href="http://mywebsite.example/somepage.html"> <!-- good -->

Now, the catch here is that HTTP without security is being frowned upon. Most websites, even trivial ones, redirect to HTTPS. It keeps certain malicious snooping and spying down quite a bit. So, doing this to your website is really counter to current progress.

What you would probably like to do is the opposite; redirect everything to HTTPS. However, HTTPS is not a feature supported on free hosting. But, Cloudflare (and etc.) offer a service to do this for you, and it costs nothing. This brings up the new way

Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

This is what most people want; mysite.example/ANYTHING will go to https://mysite.example/ANYTHING, even if anything really is /something/really/long/like/this.example . Of course, you can do the inverse and redirect everything to HTTP by changing the "off" to "on".

Finally, x10 doesn't directly support Cloudflare. You need your own domain. You can search on the internet for "free subdomain" and get a free one that way or for $10 a year, you can get a .com, .net, and a variety of others, with fees going up for more custom domains.
 
Status
Not open for further replies.
Top