1
htaccess文件重定向到我的网页像的.htaccess图像显示问题
网站/ PAGETITLE到index.php?ID = PT
,并显示出从 类网站/条条/ PAGETITLE
现在.htaccess文件考虑我的图像文件夹作为catgory目录和图像作为pageTitle并且不显示图像 即使当我指向url时它显示文章页面
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#show urls like site/author/pageno
RewriteRule ^author/(.*)/(.*)$ index.php?author=$1&page=$2 [NC]
RewriteRule ^author/(.*)?$ index.php?author=$1&page=$2 [NC]
#show articles like site/article/articleTagName
RewriteRule ^article/(.*)/(.*)?$ index.php?article=$1 [NC]
RewriteRule ^article/(.*)?$ index.php?article=$1 [NC]
#direst article site/articleTagName
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?article=$1 [L,QSA]
#set image folder and user folder to real from virtual
RewriteRule ^(.*)/images/$ /images/
如果我的路径= www.test.com/img/test/12.jpg 正确的路径资源/图像/测试/ 12.JPG 我可以这样写? RewriteRule ^(。*)/ img/$ resource/image/$ 1 – Leon 2012-01-16 07:22:09