Different .htaccess file created when migrating site to https
-
Hi guys,
i’m NOT technical but trying to learn something, i use backupbuddy to migrate my websites from a test site to the proper domain, i never have an issue, but when transferring to a https domain i couldn’t login after i had migrated, after searching the internet i compared for suggestions it seems the .htaccess file is slightly different to when i migrate to just a http domain, so i copied this .htaccess file and it works now, but wondering if anyone can tell me in simple terms why this may have happened and am i ok to do what i have done and use the .htaccess file that usually works with just a http domain,both versions are below, the first is the one that don’t work and the second is the one that does work, thanks in advance… ??
http – https dont work:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase //stinet.co.uk/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . //stinet.co.uk/index.php
</IfModule>http to http this code works
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
- The topic ‘Different .htaccess file created when migrating site to https’ is closed to new replies.