.htaccess URL rewrite issues? Direct unique URL with subdir redirects to home
-
Hi,
I’ve been having this issue for several years. I run a multi-site setup, and?HTTP Strict Transport Security?as of about a month ago, but the multi-site with standard encryption was used since 2016.
Whenever I try to go to ~/pageid – It redirects to the homepage. Whenver I put in ~/pageid/subpageid, it loads directly.
All of the ~/pageids are top-level menu items, but they do exist with content/pages. So, I’m not sure what’s going on.
I thought about setting up no click top level menu items, but I would rather not.
I have tried several approaches to the .htaccess.
Here’s what I have and just tried again today; neither work:
This is the “working” one:
https://pastebin.com/U65gHkDk
Proposed new implementation according to guides below. This one was preventing some wp-admin dashboard issues, but there are some directives that might need to be adjusted.
https://pastebin.com/6B5RQ3K4
https://wpmudev.com/blog/htaccess/
Loginizer Pro doesn’t recognize the loginizer directives in the .htaccess to setup more strict controls.
Additional info: When I started my hosting account, I was using another domain: mytechsolutions.net – When I created this site, it got listed as turnkeymsp.mytechsolutions.net, but it always redirects to turnkeymsp.net or doesn’t at all. So, I’m not sure if that’s part of the issue.
With regard to the wp multi user directives, I have sites that are subdomains, but the turnkeymsp.net is setup with sub-directories for pages and content. So, I’m using that one. I tried both subdir and subdomain directives, but no change.
One time, I was getting direct URLs to load, but not all.
What I’m trying to achieve?
I want to be able to send someone a direct link (i.e. turnkeymsp.net/about, turnkeymsp.net/product/productID, etc.), and it load up directly without having to type it in the address bar after loading, search, or go through the menu. It’s probably affecting my indexing too.
I don’t usually reach out for help much; it’s been 8 years on this site, probably time!
Thanks in advance!
– Tyler- This topic was modified 4 months, 3 weeks ago by . Reason: moved to Networking WordPress, since this is a multisite issue
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.