Htaccess (Wordpress): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
# BEGIN WordPress | # BEGIN WordPress | ||
<IfModule mod_rewrite.c> | <IfModule mod_rewrite.c> | ||
RewriteEngine On | |||
RewriteRule ^index\.php$ - [L] | RewriteRule ^index\.php$ - [L] | ||
RewriteCond %{REQUEST_FILENAME} !-f | RewriteCond %{REQUEST_FILENAME} !-f | ||
Revision as of 20:51, 14 May 2011
ต้องสร้างไฟล์ .htaccess ไว้ในโฟลเดอร์หลักของ wordpress เวลาที่เปิดใช้ Permalink.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
# END WordPress