### Error Message

https://doneplumbers.42web.io/?i=1

This is a 5 page website but am getting a 404 error on all expect for the home page.

I checked the knowledge base, several reasons were given, the closest being that the pages do no exist on the root folder of the website, i guess in .php as it is a wordpress website, but the issue is that I do not know how to get and upload the files of other pages to the root folder directory, any help or guide regarding this?

I see your website is using WordPress. If pretty URLs don’t work in WordPress, that usually means that the .htaccess file is missing.

The .htaccess file contains configuration that changes server behavior. Most notably: how should the server handle URLs on your website.

To fix this, you can:

  1. Go to your account in the client area.
  2. Go to the Domains page.
  3. Click “File Manager” next to the domain.
  4. Create a new file with the name .htaccess (yes, exactly like that, starting with a dot a no file extension).
  5. Paste in the default WordPress snippet: Apache HTTPD / .htaccess – Advanced Administration Handbook | Developer.WordPress.org
4 Likes

Thanks for the guide. I tried this, it didn’t work. On getting there, I saw there’s already a “.htaccess file”, I dowloaded it and deleted it. I tried creating a new one, is coming back with a kind of error. I tried re-uploading, it is also coming back with error. I may film the process of what I did for you, if you so need. Thanks once again.

So… what’s the error?

Also, is that the .htaccess file in the base directory? The one that says DO NOT EDIT THIS FILE at the top? Because you’re not supposed to touch that one.

In the MediaWiki guide, it says you should create the .htaccess file in the public_html folder. It’s called htdocs on our platform, not public_html. But the point is that you can create a .htaccess file basically anywhere, but you need to be careful where to create it.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.