I made a mistake and changed the URL under settings -> General. After this Wordpress locked me out. I first added in the wp-congif.php file:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
This appeared to have fixed the issue but only if I was logged into Wordpress. Users could not enter to the website and they have a forbidden message. My URL to visit my test site would redirect me always to my homepage, etc.
I also resetted the htcaccess file but nothing seems to do the trick. I finally uploaded a full backup of my site and the problem is still there, nothing works and the site is completely broken. Any ideas?
My current htaccess file looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /guiacentros/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /guiacentros/index.php [L]
</IfModule>
# END WordPress
.htaccess
file? is it in your web root directory or is it in/guiacentros/
directory?