Seo Friendly URL results in CSS IMG and JS not working

后端 未结 2 871
别那么骄傲
别那么骄傲 2020-11-21 15:30

I want to make my URL as SEO Friendly URL. I tried editing .htaccess file by rewriting rule

RewriteRule ^swift-details/([0-9]+)/([0-9a-zA-Z_-]+)$         


        
2条回答
  •  野性不改
    2020-11-21 16:07

    You dont need the second rewrite rule. Your CSS/JS paths are all 'relative' to your current location.

    Your CSS exists here: /css/normalize.css

    Your page is looking here: /swift-details/2/abblinbb/css/normalize.css

    All you need is 'forward-slashes' before your CSS/JS paths.

提交回复
热议问题