skip to Main Content

How to redirect almost similar links? – Apache

I need to write two redirects: From https://site.ru/dveri to https://anothersite.ru/dveri-iz-dereva/ From https://site.ru/dveri?start=14 to https://anothersite.ru/blog/ I wrote two rules in htaccess: #1 RewriteCond %{THE_REQUEST} s/+dveri[?s/] [NC] RewriteRule ^ https://anothersite.ru/dveri-iz-dereva/ [L,R=301] #2 RewriteCond %{THE_REQUEST} s/+dveri[?s/] [NC] RewriteRule ^.*$ https://anothersite.ru/blog/? [L,R=301] Result: link…

VIEW QUESTION

Configuring multiple sites in apache

I use Win10, Apache2.4 and PHP7.4. I created 2 test sites inside Apache24htdocs - Test.com and Test2.com, both containing simple index.php files. Here are exceptions from config files: hosts: 127.0.0.1 Test.com www.Test.com 127.0.0.1 Test2.com www.Test2.com httpd.conf: # PHP7 module PHPIniDir…

VIEW QUESTION
Back To Top
Search