X
X
X
X

Knowledge Base

HomepageKnowledge BaseServer/VPS/VDSHow to Do 301 Redirect with .htacce...

How to Do 301 Redirect with .htaccess?

301 redirection on web servers using Apache on Linux servers is quite simple.

.htaccess dosyanızı açarak mevcut kodlar yerine aşağıdaki kodları güncelleyiniz. Aşağıda yer alan eskisite.com yerine mevcut alan adınızı yazın. yenisite.com yerine ise yönlendirilecek yeni alan adınızı yazın 

Options +FollowSymlinks
RewriteEngine on
ReWriteCond %{HTTP_HOST} ^(www.)?eskisite.com$ [NC]
ReWriteRule ^(.*)$ https://www.yenisite.com$1 [R=301,L]

or

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yonlendirileceksite.com/$1 [R=301,L]

Can't find the information you are looking for?

Create a Support Ticket
Did you find it useful?
(41 times viewed / 5 people found it helpful)

whatsapp
Top