13

Seo Friendly Url css img js not working

 3 years ago
source link: https://www.codesd.com/item/seo-friendly-url-css-img-js-not-working.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Seo Friendly Url css img js not working

advertisements

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_-]+)$ swift-details.php?id=$1 [NC,L]
RewriteRule ^swift-details/(css|js|img)/(.*)?$ /$1/$2 [L,QSA,R=301]

It's routing the correct URL but in that page CSS JS and images are not working.

example URL:

http://www.bankhints.com/swift-details/2/abblinbb


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.

Related Articles

htaccess page to page redirect and seo friendly urls

i have a problem with a htaccess files and i cannot figure it what is the problem. The site has url rewriting for seo purposes in place so: www.website.com/page/seo-friendly-url is rewritten to www.website.com/page.php?seo=seo-friendly-url this is do

SEO friendly URL in classic ASP?

I have website developed in classic ASP. The URL is not SEO friendly at present. Please suggest how I can make the SEO friendly URL for my website in ASP. Is there any supporting functions which can help in creating SEO friendly URL in ASP? URL for p

CSS transition will not work overflight

I have a news item with an image that I set with a style on the div. I have it set to decrease on hover which works but the css animation will not work. In the div class I have added in background-size: 100%; -webkit-transition: all .5s ease-in-out;

SEO friendly url in PHP htaccess

I use Godaddy Apache server to build my own blog, and I did some search of SEO friendly url tutorials, and applied the following code in my web root .htaccess file to transfer links like http://www.bgmemo.com/blog.php?url=2012/08/23/4-steps-to-initia

Seo friendly urls with Zend router

I want to create seo friendly urls in my Zend Framework application but how is the correct syntax for this: $newsroute = new Zend_Controller_Router_Route( 'news/:action/:id_:title', array( 'controller' => 'news' )); :id_:title obviously doesn't work

The Nginx configuration changes to use wordpress seo-friendly URLs

I am trying to setup SEO friendly URLs on wordpress website. In order to use it, I have made changes in Nginx configuration file as given on wordpress.org. location / { try_files $uri $uri/ /index.php?q=$request_uri; } But still it wont let me use SE

Do SEO-friendly URLs really affect the ranking of a page?

SEO-friendly URLs are all the rage these days. But do they actually have a meaningful impact on a page's ranking in Google and other search engines? If so, why? If not, why not? (Note that I would absolutely agree that SEO-friendly URLs are nicer to

SEO Friendly URL

I love the way SO gives link to question Like this question have the link http://stackoverflow.com/questions/6002203/seo-friendly-url where the question title is seo-friendly-url I'm creating a blog where i want to give the link in the same way SO do

SEO friendly URLs for static cshtml pages in MVC

I am junior at web development and MVC and I just stuck on creating SEO friendly URLs. I have a CSHTML page in View folder named bond.cshtml. I added the following controller public ActionResult Bond() { return View(); } URL that I have now is mywebs

SEO friendly URLs for a multilingual site

I have a site that I'm building out with php that will allow for multi language for content. One part of the site will have business listings. I have SEO friendly urls setup to view these listings, so for example I would have a business listing calle

The jquery .css () method does not work

I have a code that uses jQuery .css() method to modify the style of a DIV but it is not working. Here is a simplified version of my code that replicates the issue. HTML: <input type="radio" name="show" id="showleft" value=

PHP Seo Friendly URL

I'm having some trouble using rewrite engine to achieve my goal with friendly url. Basically I have the following structure: - index.php - down - index.php My links in main index are something like this: download/index.php?down=FILENAME I would like

The "right" CSS tag does not work as expected using percentages

When trying to use the right tag in CSS it does not work as I might expect. I was trying to make a page where one div would be so many pixels from the left, and extend 100% of the way to the right by using left: 200px; right: 100%; This has worked be

Joomla and SEO Friendly URLs

For example http://www.mysite.com is my site and I created some demo site with same server called http://www.mysite.com/new for implementing SEO Friendly urls.Is there any plugin available to do creating SEO Friendly urls or can we do this by .htacce

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK