URL重写PHP中没有htaccess的 [英] Rewrite URL in PHP without htaccess

查看:111
本文介绍了URL重写PHP中没有htaccess的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该网站托管在这里我们没有htaccess的文件。该Web服务器上访问一个网页上运行的就是Apache。我想重写URL。例如:原来的网址:
www.mydomainname.com/en/piecework/piecework.php?piecework_id=11
预期网址:piecework.mydomainname.com/en/11

The website is running on a web hosting where we don't have access on htaccess file.The web server is Apache. I want to rewrite URL. For example: The original URL: www.mydomainname.com/en/piecework/piecework.php?piecework_id=11 Expected URL:piecework.mydomainname.com/en/11

怎么办呢?

推荐答案

可悲的是没有htaccess的或Apache配置访问,您将无法做到这一点。错误的挫折感出你的主机或换新的。大部分的小气鬼共享主机在那里从我的经验提供mod_rewrite的。

Sadly without htaccess or apache config access, you won't be able to do this. Bug the heck out of your host or get a new one. Most of the cheapo shared hosts out there offer mod_rewrite from my experience.

这篇关于URL重写PHP中没有htaccess的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆