Shared hosting, multiple sites, can’t log in to WP due to .htaccess redirection

@define('ADMIN_COOKIE_PATH', "https://wordpress.stackexchange.com/");

Putting this at the top of wp-config.php allows me to log in. Not sure if this is the proper way to set everything up, but it works…

EDIT

That only solved half of the problem. Permalinks were then broken.

@toscho had the proper suggestion for anyone who may see this and has a similar issue.

However, this hosting provider doesn’t allow virtual hosts, so if you’re in a similar situation what ended up working for me was a few more .htaccess lines (see below) combined with the wp-config modification above.

# .htaccess main domain to subdirectory redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
# Do not change this line.

RewriteEngine on

# Change example.com to be your main domain.

RewriteCond %{HTTP_HOST} ^(www.)?example.com$

# Change 'subdirectory' to be the directory you will use for your main domain.

RewriteCond %{REQUEST_URI} !^/subdirectory/

# Don't change these line.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subdirectory' to be the directory you will use for your main domain.

RewriteRule ^(.*)$ /subdirectory/$1

# Change example.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.

RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteRule ^(/)?$ subdirectory/index.php [L]

deneme bonusudeneme bonusu veren sitelerpulibet girişOnwin Güncel Giriştürkçe altyazılı pornocanlı bahis casino