Answer the question
In order to leave comments, you need to log in
How to properly set up a subdomain redirect on timeweb hosting if both sites are on wordpress?
The main site is in the public_html folder, the subdomain is in the same place in a separate folder. There is a redirect in .htaccess.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^subdomain\.domain\.ru$
RewriteCond %{REQUEST_URI} !/subdomain/
RewriteRule ^(.*)$ /subdomain/$1 [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Answer the question
In order to leave comments, you need to log in
There are settings in the admin panel, fix the link there, make the subdomain type site.site.ru, not site.ru/site
Settings -> General
WordPress Address (URL) and Site Address (URL)
Should help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question