Products & Services Submit a ticket My Tickets
Selamat datang
Masuk  Mendaftar

Bagaimana cara redirect subfolder WordPress lengkap dari file

Bagaimana cara redirect subfolder WordPress lengkap dari file .htaccess?

Sebelum mengedit file .htaccess, anda perlu menyalin file .htaccess ke PC lokal Anda.

Sebagai contoh .htaccess seharusnya terlihat seperti :

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

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

Add a redirect for complete 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

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


Apakah jawaban ini bermanfaat? Ya Tidak

Send feedback
Maaf kami tidak bisa membantu. Bantu kami mengembangkan artikel ini dengan umpan balik Anda.