0

Google seo のために、mod の書き換えを正しく行うのに問題があります。

www.example.com/p/press goto internal ./pages/press.html

ただし、Google はリンクを www.example.com/p/press として表示する必要があります。

それは可能ですか?または、Google は URL を www.example.com/pages/press.html として表示しますか?

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_USER_AGENT} ^.*(Googlebot|Mediapartners|Adsbot|Feedfetcher|msnbot|Googlebot-Image|yahoo-slurp) [NC]
RewriteRule ^sitemap\.xml sitemap.xml [L,NC]

RewriteCond %{HTTP_USER_AGENT} ^.*(Googlebot|Mediapartners|Adsbot|Feedfetcher|msnbot|Googlebot-Image|yahoo-slurp) [NC]
RewriteRule ^robots\.txt robots.txt [L,NC]

RewriteCond %{HTTP_USER_AGENT} ^.*(Googlebot|Mediapartners|Adsbot|Feedfetcher|msnbot|Googlebot-Image|yahoo-slurp) [NC]
RewriteRule ^p/press(.*) pages/press$1 [L,NC]

RewriteRule ^(.*) http://www.example2.com$1 [R=301,NC,L]

</IfModule>

他のすべてのリンクとブラウザは www.example2.com に移動する必要があります

別の時間にページが pages/press.html でヒットしたと仮定すると、それは下のルールに一致し、そこにリダイレクトされます。mod_alias などを使用して /p/press 呼び出しで初めてコンテンツを表示する方法はありますか?

4

0 に答える 0