问题描述
小组,希望你能提供帮助。
我的网站上有一个URL,目前在目录下
mysite.com/something/
但是我想将URL更改为mysite.com/anotherthing/
当然,这很容易做到但我在/某个URL下有一个非常大的Google
排名,我担心如果我将
转移到新网址,我就输了所有这些。
有没有办法把我的所有内容放在/ anotherthing下,但
让任何人输入网址/某些东西仍然都是一样的
内容/ anotherthing?
..htaccess也许?还是PHP标头?我没有意义吗?
非常感谢,
保罗。
Hi group, hope you can help.
I have a URL on my website that is currently under the directory
mysite.com/something/
But I''d like to change the URL to mysite.com/anotherthing/
This is peasy to do, of course, but I have a really big Google
ranking under the /something URL, and I''m afraid that if I
transfer to the new URL, I''d lose all that.
Is there a way to put all my content under /anotherthing, but
make anyone typing in the URL /something still get all the same
content in /anotherthing?
..htaccess maybe? Or PHP headers? Am I making no sense?
Thanks a lot,
Paul.
推荐答案
如果您使用Apache作为Web服务器Paul,它最好的完成:
RewriteEngine
RewriteRule ^ / something /(.*)
If you''re using Apache as a Web server Paul, it''s best done with that:
RewriteEngine on
RewriteRule ^/something/(.*)
这篇关于它在这里......但不是真的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!