I am faced with a challenge. A client notified me of an issue with a website built on wordpress.
When the url is entered on a browser for example www.url.com it automatically redirects to www.url.com/main/ which make the wordpress dashboard not accessible.
Now what i did was log into the cpanel account got all the file out of the folder /main/ and wrote this htaccess line of a code
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
yet when the url is entered it still redirects to the /main/ folder. how can i fixe this and most especially how can i make the wp-admin accessible.
The url is kaptainfoods.com