English 中文(简体)
Mod-rewrite。 不工作
原标题:Mod-rewrite.htaccess not working
最佳回答

http://www.ohchr.org。 真的想知道,在不适当测试的情况下,你如何最终接受其他问题。 采用这一守则并取代现行《准入法》。

RewriteEngine On
RewriteBase /
RewriteRule ^index.php/?$ - [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule  ^(.*)$ users/profile.php?user=$1 [L,QSA,NC]
问题回答

这是服务器故障问题。

  1. Are your running apache?
  2. 是否使甲草胺模块能够使用?

    debian: a2enmod rewrite;

  3. 这本名录是否被压倒一切? 在使用违约诉东道的情况下:

    <Directory /var/www/>
            #AllowOverride None
            AllowOverride FileInfo
    </Directory>
    
  4. What are showing error.log? tail /var/log/apache2/error.log

  5. 简单版本:

法典:

RewriteEngine On
RewriteBase /
RewriteRule  ^profile.php profile.php [QSA,L]
RewriteRule  ^(.*)$ profile.php?user=$1 [QSA,L]




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签