Question

Error 404 when acessing sublinks inside subdomain

I’m setting up a subdomain wordpress. Initially I’m acessing like “wagnercaetano.com/portfolio-websites/ecommerce-example”, at first view looks fine, everything loads, the admin is working fine… but eventually when I try to change to another route like ‘/contacs’ I receive a 404 error… anyone has any idea what could it be ? I tried enable rewriting, symlinks and scripts in .htaccess on both folders… tried map a new config for this other instace of wordpress… but still isn’t working. I’m working with open lite speed versions, and since I’m new to that, idk how to configure it properly.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
March 2, 2023

Hello @wagnercaetano

You can examine your config files if the virtual host contains any rewrite rules that will cause this behavior.

You can also check the current permalinks option inside your WordPress administrator area. The permalinks are the permanent URLs of your posts, pages, categories, and other archive pages on your website.

On the WordPress dashboard, go to Settings →︎ Permalinks Screen. You can choose one of the permalink structures or enter your own in the “Custom structure” field using the structure tags.

https://wordpress.org/documentation/article/customize-permalinks/

Hope that this helps!

It could due to config issue somewhere. If you aren’t sure how to check the config or log, then I’d recommend you to submit the issue to support@litespeedtech.com for further help, and update here with the solution.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel