หัวข้อ: ขอความช่วยเหลือ htaccess Wordpress ผม URL มันขึ้นแบบนี้ครับ เริ่มหัวข้อโดย: maidai ที่ 15 ตุลาคม 2010, 05:02:11 ผมเซ็ต permalink แบบนี้ครับ
/%postname แต่ไหง url มันออกมาน่าเกลียดเช่นนี้ คือว่า subdomain ผมมันเป็นแบบนี้ครับ subdomain.domain.com/%postname มันไม่ยอมออกมาตามปกติครับ htaccess ของผมเป็นแบบนี้ครับ # BEGIN WPSuperCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / AddDefaultCharset UTF-8 RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$ RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz" [L] RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$ RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html" [L] </IfModule> # END WPSuperCache ขอความช่วยเหลือด้วยครับ ไม่รู้จริงๆว่าจะปรับยังไง :wanwan017: หัวข้อ: Re: ขอความช่วยเหลือ htaccess Wordpress ผม URL มันขึ้นแบบนี้ครับ เริ่มหัวข้อโดย: -[E]xplore[R]- ที่ 15 ตุลาคม 2010, 05:16:13 ก้ใส่ %postname ผิดอ่ะครับ
มันต้องมี เครื่องหมายเปอเซนปิดหลังด้วย %postname% หัวข้อ: Re: ขอความช่วยเหลือ htaccess Wordpress ผม URL มันขึ้นแบบนี้ครับ เริ่มหัวข้อโดย: maidai ที่ 15 ตุลาคม 2010, 05:30:07 ขอบคุณมากครับ ตกม้าตายจริงๆ อิอิ :wanwan004:
|