.htaccess重写不适用于我的css
我有一个问题与重写模式,并在这个论坛上寻找解决方案,迄今为止没有成功 我正在使用localhost,其中prestashop的友好url起作用,但在其他网页中不起作用。.htaccess文件如下所示:.htaccess重写不适用于我的css,css,.htaccess,rewrite,friendly-url,Css,.htaccess,Rewrite,Friendly Url,我有一个问题与重写模式,并在这个论坛上寻找解决方案,迄今为止没有成功 我正在使用localhost,其中prestashop的友好url起作用,但在其他网页中不起作用。.htaccess文件如下所示: RewriteEngine on RewriteRule ^see_product/(.+)/(.+) see_product.php?idtit=$1&title=$2 但是CSS文件现在不起作用 CSS的路径在中http://localhost/library/style/mys
RewriteEngine on
RewriteRule ^see_product/(.+)/(.+) see_product.php?idtit=$1&title=$2
但是CSS文件现在不起作用
CSS的路径在中http://localhost/library/style/mystyle.css
查看一个产品的路径是http://localhost/library/see_product.php?idtit=21221.
我真的很感激有人能在这件事上帮助我,因为我花了好几天的时间试图解决这个问题,但任何东西都适合我。首先确保关闭“多视图”,在“重写引擎”打开之前,添加: 请确保您具有正确的相对URL库,以便在标签之间的页面标题中:
您需要告诉Apache不要重写现有文件:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^see_product/(.+)/(.+) see_product.php?idtit=$1&title=$2
如果url指向有效的目录或有效的文件,这将不会解析您的规则我真的非常感谢您的帮助!!!!!!!!!,它对我有用。在特别节目中对我起作用的是。当我将此上传到主机时,我必须做什么?。url现在将是www.mysite.com/see_product.php?idtit=22312。我需要贴标签吗?我真的很感谢你的帮助,它对我有用。在特别节目中对我起作用的是
<base href="/library/" />
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^see_product/(.+)/(.+) see_product.php?idtit=$1&title=$2