它在这里......但不是真的 [英] It's here... but not really
问题描述
小组,希望你能提供帮助。
我的网站上有一个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.
推荐答案
星期五,2003年8月15日17:50:39 +0100
< message-id:bh ********** @ newsreader.mailgate .org>
" Paul Neave" < PA ** @ FAKEneave.com>写道:
On Fri, 15 Aug 2003 17:50:39 +0100 in
<message-id:bh**********@newsreader.mailgate.org>
"Paul Neave" <pa**@FAKEneave.com> wrote:
嗨组,希望你能帮忙。
我的网站上有一个URL,目前在目录下。
mysite.com / something /
但是我想把网址更改为mysite.com/anotherthing/
这当然很容易做到,但我真的很喜欢在/某个URL下排名很高的Google,我担心如果我转移到新网址,我会失去所有这些。
有没有把所有内容放在/ anotherthing的方法,但
让任何人输入URL /某些东西仍然得到/ anotherthing中的所有内容?
.htaccess也许?还是PHP标头?我没有意义吗?
非常感谢,
Paul。
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/(.*)
http:// mysite.com/anotherthing /
http://mysite.com/anotherthing/
1
[R =永久,L]
(注意,RewriteRule行应该打开一行,将包裹在
帖子中)
HTH
问候,
Ian
-
Ian.H [Design&开发]
digiServ网络 - 网络解决方案
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
编程,网页设计,开发&托管。
1
[R=permanent, L]
(note, the RewriteRule line should be on a single line, will wrap in
post)
HTH
Regards,
Ian
--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
这篇关于它在这里......但不是真的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!