SmartFAQ 由 SmartFactory 开发(https://www.smartfactory.ca),InBox Solutions(https://www.inboxsolutions.net)的分支机构。

我如何从我的网站 URL 中删除 www ?
如果你的网站在 Apache 下运行,你可以创建(或添加)一个简单的 .htaccess 文件,并输入以下内容
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteCond 
%{http_host} ^www.example.com[nc]
RewriteRule ^(.*)$ http://example.com/$1 [r=301,nc]
IfModule>
别忘了用你网站的 URL 替换 http://example.com。这个技巧来自 vortexmind。


评论归作者所有。我们不负责其内容。


Login

Who's Online

276 user(s) are online (21 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 276


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

Did you know you can create your own Avatar for use in the forums for members who do not upload their own?

Random question

What is an inactive user (and an active user) ?