开发者

site subdirectory acts as root dir? Should I redirect 301 permanent?

开发者 https://www.devze.com 2023-01-31 02:23 出处:网络
I have the following problem - my site is located one folder below the /www folder on my hosting account, let\'s say its /www/shop. All the visitors that come to the main domain are then redirected by

I have the following problem - my site is located one folder below the /www folder on my hosting account, let's say its /www/shop. All the visitors that come to the main domain are then redirected by .htaccess file in the /www folder which takes them to the subfolder.

Should I make this redirect 301 Permanent, so that search engines could index my site better? Here's the simple .htaccess that I use for the purpo开发者_如何学Gose:

RewriteEngine On
RewriteRule ^$ /shop [L]


As long as it's really permanent, yes.

0

精彩评论

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

关注公众号