.htaccess 301 redirect everything except some custom paths

Đã hoàn thành Đã đăng vào 5 năm trước Thanh toán khi bàn giao
Đã hoàn thành Thanh toán khi bàn giao

I need to write a rule in .htaccess to redirect almost any path from an old domain to the homepage of the new domain with a few exceptions.

so as an example, this needs to look something like this:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^[login to view URL] [OR]

RewriteCond %{HTTP_HOST} ^[login to view URL]

RewriteRule ^(.*)$ [login to view URL] [R=301,L]

redirect 301 /old-about [login to view URL]

Using the above code, if I access [login to view URL] I get redirected to [login to view URL] rather than [login to view URL]

Apache Linux

ID dự án: #18008259

Về dự án

6 đề xuất Dự án từ xa 5 năm trước đang mở

Được trao cho:

sixty13web

Hello Mate, Warm Greetings! I've understood all the requirements regarding your project. ->I believe my skills and expertise matches really well! I am an experienced PHP Developer and skilled UI originator. Thêm

$15 USD trong 1 ngày
(1 Nhận xét)
0.1
jbosseu

I have worked as server admin for big names like [login to view URL] and servercentre.net. Over 8yrs of working with cpanel, directadmin and plesk servers. Can help you with this. Let me know.

$25 USD trong 1 ngày
(109 Đánh Giá)
5.7

6 freelancer chào giá trung bình$24 cho công việc này

satyaguts

can do this easily in just 1-2hrs.......................................................................................................................

$25 USD trong 1 ngày
(4 Nhận xét)
2.5
Armeed300

Hi ican do this for you in very cheap price accept my bid and give me opportunity to serve you. may you get some low ball bids, instill fear

$25 USD trong 1 ngày
(0 Nhận xét)
0.0