Htaccess (Wordpress)

From P&T Knowledgebase
Revision as of 02:47, 2 August 2015 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ต้องสร้างไฟล์ .htaccess ไว้ในโฟลเดอร์หลักของ wordpress เวลาที่เปิดใช้ Permalink.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !/wp-content/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress