Jul 14 2009

meredirect url dengan htaccess

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /
Redirect / http://www.new-address.com/
RewriteRule (.*) http://www.new-address.com/$1 [L]
</IfModule>
explanation :
RewriteBase /
* untuk menentukan folder aktif u/ rewrite tersebut

Redirect / http://www.new-address.com/
*meredirect request ke folder '/' , ke alamat baru

RewriteRule (.*) http://www.new-address.com/$1 [L]
* semua request di redirect ke alamat baru (plus parameter di belakangnya)

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

WordPress Themes