htaccess 重写:子域?
我正在考虑重写我的网址,例如:
http://www.latox.org/ Category.php?cat=action
将变为
这可能吗与 .htaccess 重写有关吗?
这样做明智吗?与 http://www.latox.org/category/action 相反,
您有什么建议?我将如何进行子域重写?
问候
I am thinking of rewriting my urls, for example:
http://www.latox.org/category.php?cat=action
would become
Is this possible to do with .htaccess rewrite?
Is this wise to do? As opposed to http://www.latox.org/category/action
What do you suggest? How would I go about doing the sub-domain rewrite?
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的第一选择将是一场难以管理的噩梦。这意味着对于每个可能的 cat 值,您必须在 dns 文件中添加一些内容。第二种解决方案更好、更简单。另外,它还有一个额外的好处,可以提高你的谷歌业力。当人们总是指向同一个领域时,你的业力就会变得更高。
规则相当简单。
Your first choice will be a nightmare to manage. It means for each possible cat values, you will have to add something in your dns file. The second solution is a lot better and simpler. Plus it has the side benefits of making your google karma higher. When people always point to the same domain your karma is getting higher.
The rules are fairly simple.