Need assistance from htaccess specialists and WordPress gurus.
My downside:
My web site is abc.com
WordPress is put in in /wordpress folder
1) If anybody requests abc.com within the browser, it robotically forwards to ‘abc.com/wordpress’. That is carried out utilizing htaccess file and the web site homepage opens usually. I wish to take away ‘/wordpress’ from the tackle bar. That means the browser ought to show ‘abc.com’ solely as an alternative of ‘abc.com/wordpress’.
How can we acheive this?
2) Additionally, for any inside hyperlinks within the webiste, I wish to take away ‘/wordpress’ within the browser path. So, if anybody requests ‘Providers’ webpage which could be accessed from homepage, they need to see:
‘abc.com/providers’ as an alternative of ‘abc.com/wordpress/providers’ within the tackle bar.
In the intervening time, if somebody requests ‘Providers’ webpage from homepage, the browser directs to ‘abc.com/wordpress/Providers’ however comes with an error:
This web page isn’t working
abc.com redirected you too many instances.
Attempt deleting your cookies.
ERR_TOO_MANY_REDIRECTS
Nonetheless, after navigating to the tackle bar and eradicating ‘wordpress’ textual content from this i.e. simply typing ‘abc.com/Providers’, this comes again with the traditional ‘Providers’ web page displayed usually.
Might somebody please assist me to resolve the above?
My present htaccess file appears to be like like this:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?abc.com$
RewriteCond %{REQUEST_URI} !^/wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /wordpress/$1
RewriteCond %{HTTP_HOST} ^(www.)?abc.com$
RewriteRule ^(/)?$ wordpress/index.php [L]
</IfModule>