[英]how to remove home in my site url using htaccess
This is my site https://www.reportsbuyer.com/Home I want to remove Home in that url using htaccess. 这是我的网站https://www.reportsbuyer.com/Home,我想使用htaccess在该URL中删除Home。 I given like this
我这样给
RewriteRule ^(Home(/index)?|index(\\.php)?)/?$ / [L,R=301]
but it will return https://www.reportsbuyer.com/?/Home like this. 但它会返回https://www.reportsbuyer.com/?/Home这样。 Please give me a solution.
请给我一个解决方案。
Thanks 谢谢
这可能会解决问题
RewriteRule ^/?$ /homepagepath/index.php [L]
RewriteRule ^(.*)$ /home/index.php/$1 [L,QSA]
before index.php mention the name of folder till the base 在index.php之前提到文件夹的名称,直到基本
RewriteRule ^(.*)$ /BookCycle/html/index.php/$1 [L,QSA] //Example
htdocs/ProjectName/home/{{here start ur application, assets,.htaccess}} Mention this whole path to solve this problem in the future htdocs / ProjectName / home / {{此处启动您的应用程序,资产,.htaccess}}提及了整个路径,以在将来解决此问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.