0

私はウェブサイトを作成していますが、なぜ機能しないのかわかりmod_rewriteません。

現在の URL は次のとおりhttp://www.treetle.com/profile/index/show/rameshmantha
です。http://www.treetle.com/profile/rameshmantha

rameshmanthaはプロファイル名 (動的に生成されます) で、ここに私の .htaccess ファイルがあります。

RewriteEngine on

Options +FollowSymLinks

RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1

RewriteRule ^/profile/([a-z]+)?$ /profile/index/show/$1[L,QSA]
4

1 に答える 1

1

RewriteRule ^(.*)$ index.php/$1すべてに一致します。順序を次のように入れ替えてみましたか:

RewriteRule ^/profile/([a-z]+)?$ /profile/index/show/$1[L,QSA]
RewriteRule ^(.*)$ index.php/$1
于 2012-05-07T11:53:48.277 に答える