Apache htaccess page URL issues
-
I have the WordPress install on a separate folder called “blog” within the root www folder. The root folder has its own index.php file with a landing page.
After I updated my WordPress .htaccess file to force the WP install to take HTTPS (TLS) over HTTP, all my error pages (such as Error 404) redirect to the WordPress error page. For example, any error in URL for https://sanuja.com/ will direct to 404 page associated with my WP blog install not the general 404 page.
What am I missing here? Did I accidentally deleted some .htaccess code when when I forced the HTTPS?
I do see the following in the root .htaccess (non-WordPress) section.
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtmlI also noticed that all the pages in https://sanuja.com/blog/ now can be access without the “blog” part in the URL. The WP is not in the root and why is it that visitors can access a blog post without the “blog” in the URL?
You can try visiting, https://sanuja.com/blog/about and also try without the “blog” part and it will still load the WordPress page instead of giving a general 404 error page.
Thank you so much!
The page I need help with: [log in to see the link]
The topic ‘Apache htaccess page URL issues’ is closed to new replies.