htaccess while wordpress is hosting in subfolder
-
I want to clear on one thing. here is the actual scenerio ,if anyone can help me in:
- We have a domain e.g. abc.com and its has one open source application running without any issue
- we have a subfolder there e.g. NewSite
- Now in folder NewSite, I want to install wordpress which is fine
- but I want to place a code in main root folder in htaccess file which actually takes user to land on NewSite folder website but keep the url abc.com, however, abc.com can be access with special url like https://www.abc.com/index.php/syx
- Here is the code which is working but I am confused on what would be the permalink of wordpress in actual? Hope this clear my question. (Since browse apparent url will be ab.com but what would be the actual url when I edit the pages in wp?)
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?abc.com$
RewriteCond %{REQUEST_URI} !^/NewSite/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /NewSite/$1
RewriteCond %{HTTP_HOST} ^(www.)?abc.com$
RewriteRule ^(/)?$ NewSite/index.html [L]The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘htaccess while wordpress is hosting in subfolder’ is closed to new replies.