我有一台服务器和2个(akvinabeauty.lt和krikis.lt)域连接到该服务器。 第一个域正在工作,应该如何进行,并且直接进入根方向 第二个域,我需要重定向到/ dev / directry。 我已经在.htaccess中用锥完成了 但是SEO表示由于重定向错误问题,我被Google搜索阻止了
我的.htaccess代码:
RewriteEngine on
RewriteBase /
# Rewrites all URLS without blog in them
RewriteCond %{REQUEST_URI} !^/dev/
# Rewrites all URLS [Replace "example" with the actual domain, without the TLD (.com, .net, .biz, etc)]
RewriteCond %{HTTP_HOST} ^(www\.)?krikis\.
# Rewrite all those to insert /folder
RewriteRule ^(.*)$ /dev/$1 [L]
Google搜索和seo允许使用更多友好的重定向代码吗?
SEO分析向我显示此错误:
Url redirect to 'https://krikis.lt/dev/' with a '302 Found' respond code.
The url redirect with a '302 Found' respond code and because of that this url does not get indexed by the search engines. In case you planned for a redirect on this url, do it with a '301 Moved Permanently' redirect, in that case the search engines knows that the redirected url is the new url.