Sunday, February 5, 2023
Htaccess

Cara membuat redirect domain dengan htaccess

Caranya adalah sebagai berikut :

  • Login ke akun hosting anda.
  • Masuk ke menu file manager dan masuk ke folder public_html
  • Scroll halaman kebawah dan perhatikan pada textbox create new file
  • Pada textbox masukkan nama file .htaccess (titik htaccess) pastikan ada tanda titik didepan kemudian create file
  • masukan kode berikut : misal dari games.com ke yuby.com/index.html

RewriteEngine On
RewriteCond %{HTTP_HOST} ^games.com$
RewriteRule ^$ http://yuby.com/index.html [L,R=301]

atau

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://domain.com/$1 [r=301,nc]

(Visited 11 times, 1 visits today)
Baca Juga :  How do I redirect my site using a .htaccess file?

Similar Posts


Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270

Warning: Trying to access array offset on value of type bool in /home/des1gn/hendro-wibiksono.web.id/wp-content/plugins/floating-related-posts/floating-related-posts-pro.php on line 270