duanfuxing2212 2013-07-20 00:18
浏览 16

.htaccess重写不正常

Okay, my .htaccess file is as follows:

 RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(([A-Za-z0-9\-]+/)*[A-Za-z0-9\-]+)?$ $1.php

RewriteCond %{DOCUMENT_ROOT}/$0 !-f
RewriteRule ^(.*)(\.)(.*)$ profile.php?url=$1 [L,QSA]

RewriteCond %{DOCUMENT_ROOT}/conversation/$0 !-f
RewriteRule ^(.*)(\.)(.*)$ conversation.php?with=$1 [L,QSA]

The first 2 rewrites work fine, no problems at all. Its the second one that does not work as planned. I dont see why either, its the same line as the previous one, just altered for a different file.

I get this error on all of my pages with this configuration.

Warning: Cannot modify header information - headers already sent by (output started at /home/ddd/public_html/ddd/conversation.php:1) in /home/ddd/public_html/ddd/conversation.php on line 24

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 yolov8边框坐标
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭
    • ¥15 2020长安杯与连接网探
    • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
    • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
    • ¥16 mybatis的代理对象无法通过@Autowired装填
    • ¥15 可见光定位matlab仿真
    • ¥15 arduino 四自由度机械臂