dongwen3437 2015-03-26 01:41
浏览 76

如何配置htaccess文件重定向Wordpress中的链接

I have the domain "abc.com"

Now I want to bring source code back to localhost for development.

In localhost I have also created folder "abc.com"

I configure all things are ok, I test website successfully in localhost by "localhost/abc.com"

But some in my content and my menu have the FIXED links like "/category/cate1". I edit this link like "abc.com/category/cate1" it will be OK but I can't edit it because after development I will upload to server again.

So my question is how can I access to localhost/abc.com and when click the link "/category/cate1" it will be redirect to

"localhost/abc.com/category/cate1"

NOT

"localhost/category/cate1"

Thanks for all answer

  • 写回答

1条回答 默认 最新

  • douzun4443 2015-03-26 02:13
    关注

    I prefer migrating whole website as all wordpress permalinks are hardcoded into database. So it is better to migrate database for localhost to avoid broken URLs

    Please Follow this:Easy Migration Script

    评论

报告相同问题?

悬赏问题

  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)