Reliable 5 Posted June 16, 2017 Report Share Posted June 16, 2017 У меня вот такой RewriteEngine on # catch errors ErrorDocument 401 /index.php?bff=errors&errno=401 ErrorDocument 403 /index.php?bff=errors&errno=403 ErrorDocument 404 /index.php?bff=errors&errno=404 ErrorDocument 500 /index.php?bff=errors&errno=500 ErrorDocument 501 /index.php?bff=errors&errno=501 ErrorDocument 502 /index.php?bff=errors&errno=502 ErrorDocument 504 /index.php?bff=errors&errno=504 # directory index file DirectoryIndex index.php Options -Indexes Options +FollowSymlinks RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L] # www to non-www RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] # send to index.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^okvartirka\.ru [NC] RewriteRule (.*) https://okvartirka.ru/$1 [R=301,L] Есть страница с адресом okvartirka.ru/search/ я хочу сделать её основной страничной то есть главной но чтобы в адресной строке не было /search/ Помогите правильно отредактировать .htaccess чтобы главной страничной была главная страница с /search/ Link to post Share on other sites
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now