Wordpress in It's own directory

#1
I'd installed my wordpress in Method II (With URL change). Everything goes well except when accessing some dashboard that needs wp-json like widgets and plugins dashboard like really Simple SSL , Code Snippets. Is there a way to fix this ? I had tried to reinstall those plugins but failed.

plugins installed :
  • Asset CleanUp: Page Speed Booster
  • Code Snippets
  • GA Google Analytics
  • Insight Core
  • LiteSpeed Cache
  • Manage Notification E-mails
  • Popup Maker
  • Really Simple Security
  • Stop User Enumeration
  • Wordfence Security
  • WP Mail SMTP
  • WPBakery Page Builder
.htaccess on SITE ADDRESS folder (Site Address URL) :
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

.htaccess on Wordpress Address folder ( main wordpress file in folder "mywordpress" )

# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /mywordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /mywordpress/index.php [L]
</IfModule>

# END WordPress


Thanks In Advance !!
 

Cold-Egg

Administrator
#3
Are you able to open the wp-json? https://your_domain/mywordpress/wp-json, if not, what's the status code in the browser console?
 
#4
I just realized it's blocked bt CORS policy because The admin url is my VPS IP addess whilst the site url is a domain name. I would like to use this setting. Is it feasible? Thank you
 
Top