dtcn30461 2014-09-22 11:50
浏览 46
已采纳

在wordpress中重写url以获取其他php文件

I have created php file in theme. So for that page I am getting url as:

.../site-name/wp-content/themes/mytheme/admin-dashboard.php

I want it as

../site-name/admin-dashboard

So how to do it?Using htaccess or is there any other way

  • 写回答

1条回答 默认 最新

  • doujia7779 2014-09-22 13:49
    关注
    1. create a new wp page, name it admin-dashboard
    2. create a shortcode for admin-dashboard.php content and add it to admin-dashboard wp page
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 chaquopy python 安卓
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 CSS实现渐隐虚线框
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容