开发者

How to redirect site url to www in pligg

开发者 https://www.devze.com 2023-01-31 00:39 出处:网络
How redirect site url to www for pligg.I dont have more knowledge about pligg.So please provide me the help.

How redirect site url to www for pligg.I dont have more knowledge about pligg.So please provide me the help.

example:http://example.com to开发者_如何学Python http://www.example.com

Thanks


Setting your site base to address without www

edit .htaccess

replace

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^\/?(.*)$ http://www.%{HTTP_HOST}/$1

to

# Fix trailing slash problem
RewriteRule ^([^\.]+[^/])$ http://infoneo.pl/$1/ [R=301,L]
# Remove www., always.
RewriteCond %{HTTP_HOST} ^www\.infoneo\.pl$ [NC]
RewriteRule ^(.*)$ http://infoneo.pl/$1 [R=301,L]
##### Re-directing End #####

infoneo.pl change to your site base address

From: http://discussion.dreamhost.com/thread-87381.html

0

精彩评论

暂无评论...
验证码 换一张
取 消