Hello, you need to add the URL rewirte configuration in the subsite configuration file
How to install WordPress in a subdirectory?
Please tell me sir, rewrite that configuration
Hello, you can view the content from here and then add it to the configuration of the subsite
I've done that sir.
The problem is that if the permalink structure is %postname% it will point to the main domain not a subdir
It is recommended to check whether your site configuration file is configured correctly?
Personally, it is recommended that you create a new site directly, and the directory of the site points to the same directory.
Yes, it's the same directory, sir
Like this:
www/wwwroot/mysites.com (main site uses WordPress)
www/wwwroot/mysites.com/blog (directory site uses WordPress)
I installed WordPress in a directory using the subdirectory binding in the panel, everything runs normally and can be accessed.
But when I change the permalink structure to %postname% in the subdir the link in the post will be directed to the main domain and not found.
for example like this:
mysites.com/blog/how-to-use-aapanel
When clicked it will redirect to the main domain and it is not found, it should remain in the subdir
You should use the domain name that binds the subdirectory to access.
This is the domain name jump of the main site
Please give me a correct example sir?
You should use the added domain name to access your subdirectory bindings
Such as: 113wp.com
Resolved
https://www.nginx.com/resources/wiki/start/topics/recipes/wordpress/
Thankyou for your response sir
darapati17 please the link not work now, any idea?