天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

apache+codeigniter 通過.htcaccess做動態二級域名解析

復制代碼 代碼如下:
AuthName "yousite Website Coming Soon..." //如果你想給你的網站加個權限訪問
AuthType Basic
AuthUserFile D:/xxx/.htpasswd #如果你想設置密碼訪問 如何生成.htpasswd可以訪問 http://www.htaccesstools.com/htpasswd-generator/
#AuthGroupFile /dev/null
require valid-user

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]


<IfModule mod_proxy.c>
# Redirect to boutique (with any trailing path)
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteCond %{HTTP_HOST} ^([^.]+).yousite.com(.*)$ [NC]
RewriteRule ^(.*)$ http://www.yousite.com/boutique/$1$2 [P,L]
</IfModule>

<IfModule !mod_proxy.c>
# Redirect to boutique (with any trailing path)
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteCond %{HTTP_HOST} ^([^.]+).yousite.com(.*)$ [NC]
RewriteRule ^(.*)$ http://www.yousite.com/boutique/%1/$1 [R=301,L]
</IfModule>

## Otherwise, force www;
RewriteCond %{HTTP_HOST} ^yousite.com$ [NC]
RewriteRule ^(.*)$ http://www.yousite.com/$1 [R=301,L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php
</IfModule>

出處:cnblogs 微博:@草根小胡

php技術apache+codeigniter 通過.htcaccess做動態二級域名解析,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 在线欧美 精品 第1页 | 久久re热线视频国产 | 亚洲欧美日本久久综合网站 | 亚洲成a人不卡在线观看 | 国内精品久久久久久久999下 | 男人的天堂色 | 乳液全集电影在线观看 | 国产亚洲欧洲日韩在线观看 | 亚洲欧美中文字幕高清在线 | 黑色丝袜美女被网站 | 亚洲第一页在线播放 | 国产亚洲精品在浅麻豆 | 哪灬你的鸣巴好大 | 亚洲成人mv | 老外的好大c的我好爽 | 被免费网站在线视频 | 国产亚洲视频精彩在线播放 | 熟妇少妇任你躁在线无码 | 九色终合九色综合88 | 99久久精品国产国产毛片 | 国产午夜精品理论片久久影视 | 中文字幕高清在线中文字幕 | 免费看男人J放进女人J无遮掩 | 国产国产乱老熟视频网站 | 少女亚洲free | 国产SUV精品一区二区69 | 日韩内射美女人妻一区二区三区 | xxnxx美女| 精品国产自在自线官方 | 理论片在线观看片免费 | 日本国产成人精品无码区在线网站 | 亚洲国产精品线在线观看 | 国产人妻麻豆蜜桃色精 | 亚洲精品电影久久久影院 | 无限资源在线观看高清 | 漂亮的av女演员 | 麻花传媒MD0044视频 | 国产精品日本一区二区在线播放 | 国产一区二区无码蜜芽精品 | 高清无码中文字幕影片 | 国产免费啪嗒啪嗒视频看看 |