Bagaimana cara redirect subfolder WordPress lengkap dari file .htaccess?

Bagaimana cara redirect subfolder WordPress lengkap dari file .htaccess? – Jika anda ingin menggunakan Redirect subfolder di wordpress agar ke halaman utama, caranya adalah sangat mudah, yaitu cukup menggunakan .htaccess untuk salah satu caranya. Anda cukup memasukkan kode berikut, yaitu:

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

==================================================

Tambar redirect ke folder:

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

==================================================

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.