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:
wp_optionstable (tried both www and non-www)
- Editing the
.htaccessso 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
.htaccessfrom the root directory (htdocs)
- Renaming the subdirectory and changing all paths again
- Overwriting the
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...