ผมมารับงานต่อที่บริษัทนึงครับ
นี่โค้ดบนเซิฟครับ
#RewriteBase /
#RewriteCond %{REQUEST_URI} !^/index.html
#RewriteCond %{REMOTE_ADDR} !^(36\.3\.114\.180|218\.216\.73\.34|58\.81\.123\.91)$
#RewriteRule .*
http://www.name.com/index.html [R=302,L]
#</IfModule>
php_value include_path '.:/home/namesite/domains/name.com/public_html/cgi-bin/:/home/namesite/domains/name.com/public_html/cgi-bin/db_modules/:/home/factlinkth/domains/name.com/public_html/mod/'
php_value open_basedir none
--------
แต่ผมต้องการที่จะรันเทสที่เครื่อง local น่ะครับ ฟังชั่น modwrite เปิดแล้วครับ
#RewriteEngine On
#RewriteBase /namesite/
#RewriteCond %{REMOTE_ADDR} !^(36\.3\.114\.180|218\.216\.73\.34|58\.81\.123\.91)$
#RewriteRule .*
http://localhost/namesite/index.html [R=302,L]
#</IfModule>
include_path='.:C:\AppServ\www\namesite\cgi-bin:C:\AppServ\www\namesite\cgi-bin\db_modules:C:\AppServ\www\namesite\mod'
php_value open_basedir none
------
Internal Server Error
ถามเรื่อง htaccess ครับ
นี่โค้ดบนเซิฟครับ
#RewriteBase /
#RewriteCond %{REQUEST_URI} !^/index.html
#RewriteCond %{REMOTE_ADDR} !^(36\.3\.114\.180|218\.216\.73\.34|58\.81\.123\.91)$
#RewriteRule .* http://www.name.com/index.html [R=302,L]
#</IfModule>
php_value include_path '.:/home/namesite/domains/name.com/public_html/cgi-bin/:/home/namesite/domains/name.com/public_html/cgi-bin/db_modules/:/home/factlinkth/domains/name.com/public_html/mod/'
php_value open_basedir none
--------
แต่ผมต้องการที่จะรันเทสที่เครื่อง local น่ะครับ ฟังชั่น modwrite เปิดแล้วครับ
#RewriteEngine On
#RewriteBase /namesite/
#RewriteCond %{REMOTE_ADDR} !^(36\.3\.114\.180|218\.216\.73\.34|58\.81\.123\.91)$
#RewriteRule .* http://localhost/namesite/index.html [R=302,L]
#</IfModule>
include_path='.:C:\AppServ\www\namesite\cgi-bin:C:\AppServ\www\namesite\cgi-bin\db_modules:C:\AppServ\www\namesite\mod'
php_value open_basedir none
------
Internal Server Error