我目前有动态页面。例如,index.php?p=proposal
打开一个页面从/pages/landing.php
在我的网站www/researchportal/
使用.htaccess动态页面
目前的根,http://localhost/researchportal/proposal
的页面似乎由它自己(只是proposal.php,没有CSS的内容)加载,而不是通过索引.php文件。这意味着CSS没有正确加载。
http://localhost/researchportal/index.php?p=proposal
此链接可以正确载入CSS。
http://localhost/researchportal/proposal
此链接不包含在index.php文件中定义的标题和CSS。位于我的网站的根www/researchportal/
RewriteEngine On
RewriteRule ^([A-Za-z0-9-_]+)$ index.php?p=$1
为什么心不是http://localhost/researchportal/proposal
加载正确
我的.htaccess文件?