0

あるURLから別の完全なURLにリダイレクトする必要があります

私が見たすべての例では、リダイレクトする必要のある正規表現と複雑な構文を使用しています

www.mydomain.com/page1.html

www.mydomain.com/page1replacement.html

.htaccessファイルにあると思いますが、構文はどうなりますか?

Update1 これを試しましたが、機能しません:apacheを再起動する必要がありますか?

Redirect 301 http://www.theprinterdepo.com/catalogsearch/result/index/?cat=100&q=1022&x=0&y=0 http://www.theprinterdepo.com/catalogsearch/advanced/result/?name=1022&sku=&price%5Bfrom%5D=&price%5Bto%5D=&free_shipping=&category=100 

ありがとう

4

1 に答える 1

0

これは.htaccessファイルに入ります。完全なURLを使用できます。

Redirect 301 /page1.html http://mydomain.com/page1replacement.html
于 2012-11-19T22:22:09.830 に答える