问题描述
喜我的Web服务器Apache.I已经创建了我的本地系统中的示例应用程序。它的做工精细用干净的URL。但是,当我上传到我的Web服务器(Apache),它不工作。有没有在Apache的任何设置?如果有哪些步骤?如何检查是mod_rewrite的是让我的Apache服务器?它是没有办法知道mod_rewrite的是通过任意PHP代码?
在此先感谢
是,创建一个PHP页面< PHP的phpinfo(); ?>
。这里列出了你的服务器配置。根据在加载的模块你应该看到的mod_rewrite
如果已安装。
apache2handler
部分如果它没有列在那里你要么需要问你的主机或者如果可以访问,请参见功能模块的Apache文件夹(例如在/ etc / Apache2的一个标准安装),看看是否有mod_rewrite的列出。
HiMy web server is Apache.I have created a sample application in my local system. It's working fine with the clean url. But when i uploaded to my Web server( Apache) it's not working. Is there is any settings in Apache? If yes what are the steps? How can I check is mod_rewrite is enable in my Apache server? is it any way to know "mod_rewrite is on " through any PHP coding?
Thanks in advance
Yes, create a php page with <?php phpinfo(); ?>
. This lists your server configuration. Under the apache2handler
section in "Loaded Modules" you should see mod_rewrite
if it is installed.
If it isn't listed there you will either need to ask your host or if you have access, see the apache modules-enabled folder (eg in /etc/apache2 on a standard installation) to see if there is a mod_rewrite listed.
这篇关于。 htaccess的不工作在服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!