Answer the question
In order to leave comments, you need to log in
Setting an alias via htaccess?
There is an address:
site.ru/test/stores/forum
, an alias is registered for it:
forum.site.ru
, the following rules are used:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.site.ru [NC]
RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.forum.site.ru [NC]
RewriteRule ^(.*)$ http://forum.site.ru/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^/test/stores/forum
RewriteCond %{HTTP_HOST} ^forum.site.ru$ [NC]
RewriteRule ^index\.php(.*)$ /test/stores/forum/$1 [L,QSA]
Answer the question
In order to leave comments, you need to log in
And this is because the mat part of my friend you don’t know well
1 option RewriteBase /
is in your hands
Option 2
Option 3
change toRewriteCond %{REQUEST_URI} !^/test/stores/forum.*
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question