I installed WordPress locally and created a theme, which worked fine. Now, as I wanted to deploy the site to a webserver via FTP, I got stuck by an 301 Redirect loop which makes it impossible to reach the site (except for the backend login).
I moved WordPress into a subdirectory because I don't want to override the current site. The following steps didn't work:
- Changing
siteurl
andhome
from thewp_options
table (tried both www and non-www) - Editing the
.htaccess
so the RewriteBase is correct. After this didn't work, I deleted it, still no success - Search and replace the database for entries which might have the old url (using this script)
- Deleting the
.htaccess
from the root directory (htdocs) - Renaming the subdirectory and changing all paths again
- Overwriting the
siteurl
andhome
via wp-config.php
None of this worked. I know that the host forces to redirect to www, but no matter which kind of url type I enter, still redirecting. Any ideas?
PS: If I upload a single index.html file to this directory, it works fine...