Redirect WordPress Website and Still Allow Login
-
I have my blog website in word press and fetching posts using wp-json in my main website.
now i want to redirect this word press website into main site and still allow admin to login into dashboard for blog posting
what will be the changes i need to do in htaccess fileI tried this
RewriteCond %{HTTP_HOST} ^(blog\.)?example\.com$ [NC]
RewriteCond %{REQUEST_URI} !wp-admin
RewriteRule ^(.*)$ https://www.exaample.com/blogs [L,R=301]but it will change the UI in dashboard and some plugin will not work
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Redirect WordPress Website and Still Allow Login’ is closed to new replies.