Monday, November 11, 2024
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 63 times, 1 visits today)
Baca Juga :  Default htaccess untuk joomla

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