Sebelum melakukan perubahan di file .htaccess, anda perlu menyimpan copy file backup .htaccess ke lokal PC anda..
File .htaccess anda kurang lebih akan seperti dibawah ini:
Kemudian tambahkan script seperti gambar dibawah ini:
Sebelum melakukan perubahan di file .htaccess, anda perlu menyimpan copy file backup .htaccess ke lokal PC anda..
File .htaccess anda kurang lebih akan seperti dibawah ini:
Code:
==================================================
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
==================================================
Kemudian tambahkan script seperti gambar dibawah ini:
Code:
==================================================
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Redirect 301 /oldfolder http://www.yourdomain.com/newfolder
==================================================