文件夹的子域上的点击文件夹、子域上

2023-09-02 11:43:44 作者:地心侵略者

假设我有一个被称为something.in域名..也有它的多个文件夹中(购买,旅游,等).. 索引页面上有各个环节present就像买,旅游等....

assume i have a domain called as "something.in"..also there are multiple folders in it(buy,tour,ect).. on the index page there are various links present like buying,touring ect....

正在发生的事情是,当我点击购买链接被导航到something.in/buy~~V(文件夹名)/有的买

What is happening is that when i click on buying the url is navigating to something.in/buy(foldername)/some-buy

我希望它像buy.something.in

i want it to be like buy.something.in

是有关系的已经是美元的计算器本身p $ psent许多类似的主题.... 但我需要知道什么样的变化,必须做出所以这只是发生在单击它应该定位为纽带foldername.something.in/some-buy".using的.htaccess ..

Yes there are many similar topics related that is already present in stackoverflow itself.... But I need to know what changes has to be made so this happens only on CLICKING THE LINK it should navigate as "foldername.something.in/some-buy".using .htaccess..

在其他方面,它可以简单地说,pretty的网址点击...

IN OTHER WAY IT CAN BE SIMPLY SAID AS PRETTY URL ON CLICK...

在此先感谢

推荐答案

你为什么不干脆把正确的网址你的购物页面开始呢?

Why don't you just put the proper urls in your shopping page to begin with?

<a href="/buy/product?id=foo">

<a href="http://buy.example.com/product?id=foo">