Image .htaccess图像显示问题
htaccess文件重定向我的页面,如 index.php?id=pt的site/pageTitle 并从类别中显示文章 站点/文章/页面标题 现在.htaccess文件将我的图像文件夹视为catgory目录,将图像视为pageTitle,不显示图像 即使我将url指向图像,它也会显示文章页面Image .htaccess图像显示问题,image,.htaccess,directory,Image,.htaccess,Directory,htaccess文件重定向我的页面,如 index.php?id=pt的site/pageTitle 并从类别中显示文章 站点/文章/页面标题 现在.htaccess文件将我的图像文件夹视为catgory目录,将图像视为pageTitle,不显示图像 即使我将url指向图像,它也会显示文章页面 Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_F
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/
请将最后一行替换为
RewriteRule ^(.*)/images/(.*)$ images/$2
我也面临同样的问题,但我从你的编码中得到了一点提示,并对代码做了一点修改;现在工作正常。请将最后一行替换为
RewriteRule ^(.*)/images/(.*)$ images/$2
我也面临同样的问题,但我从你的编码中得到了一点提示,并对代码做了一点修改;现在它工作正常。如果我的路径=www.test.com/img/test/12.jpg正确的路径是resource/image/test/12.jpg,我可以这样写吗?重写规则^(.*)/img/$resource/image/$1如果我的路径=www.test.com/img/test/12.jpg正确的路径是resource/image/test/12.jpg我可以这样写吗?重写规则^(.*)/img/$resource/image/$1