English 中文(简体)
htaccess don t rewriteindex.php in Kohana
原标题:htaccess doesn t rewrite index.php in Kohana

i 在洞里找我的问题,没有发现任何有用的信息。

因此,在把该场址移至其他东道方之前,所有东西都是ok的。 工作进展良好

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system).* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

但是,如果将该网址移至其他东道方,则该索引将被拆除。 php更不用改写。

东道国的阿帕切版本为2.2.22。

用于偷窃的标识为/htdocs/andsite文档。

i 在浏览器上写


    http://verana.ge/index/page

它给我带来了404个错误。

但是


    http://verana.ge/index.php/index/page/

工作

boot的配置是:


      base_url    =>  / ,
      index_file  => FALSE,

因此,请帮助我,告诉我,如果我做错事,或者说是百孔布问题,或者说是霍加纳问题。

事先感谢你

ADDED

更多细节

i 联系到我的东道方的卫生,他向我提供了我的记录。


     /var/www/virtual/verana.ge/htdocs/.htaccess: RewriteLog not allowed here

同一接待处有一间电压场,有一间电离站,如此,并运行。

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /college/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /college/index.php [L]
</IfModule>

# END WordPress

请告诉我,问题是什么?

ADDED

沉积记录说


    [verana.ge/sid#21cbdd98][rid#21e0ad78/initial] (3) [perdir /var/www/virtual/verana.ge/htdocs/] strip per-dir prefix: /var/www/virtual/verana.ge/htdocs/ -> 

任何想法?

问题回答

i 解决这一问题。

因此,我的阿帕切服务器版本为2.2.22,我的确像以下一样藏匿存:


 IfModule mod_rewrite.c>    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
 /IfModule>

如今,这套藏匿的藏匿处有2.2.22条。





相关问题
Ignore symlinks in clean URL s in .htaccess

Example URL: example.com/user /user is both a symlinked directory and a valid URL to content on my site. I user Horde Routes to request the content and all requests to the site go through index.php. ...

.htaccess File Options -Indexes on Subdirectories

I have the following .htaccess line, simple no indexes on root. Options -Indexes What do we add so it propagates to any sub directory instead of having to create one file for each? One .htaccess on ...

Mod Rewrite ignoring -d

After a day or two, I am still fighting with Mod Rewrite. It seems that 60% of my development time is spent battling the server. My current URL structure is such that all http://example.com/xyz and ...

ErrorDocument 404 Not Sending Referrer Information: PHP

I m using a standard htaccess ErrorDocument 404 to redirect users to a new page. In order to customize the 404, I need to know their referrer information (from the page they Tried to visit). $...

Find all htaccess files on server [closed]

I m looking for a Linux command to go through all the directories on my server and find all .htaccess files. The output would be a list of all those files with full path, creation/modification date ...

301 Redirect Help with Dynamic URL s and Multiple Id s

I just did a redesign for www.wildchildclothes.com which has a new URL structure. The old site ran on Zen Cart and had a bad URL structure. Here are some examples of what I want to redirect from: OLD:...

热门标签