Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

Why css & image get distorted on URL rewrite in

just change the href of the CSS relative to it's root not from current location,


<link href="css/layout.css"
rel="stylesheet" type="text/css" />
<link href="css/reset_font_grid.css"
rel="stylesheet" type="text/css" />
<link href="css/buttons.css" rel="stylesheet"
type="text/css" />
<link href="css/inner-pages.css"
rel="stylesheet" type="text/css" />


<link href="/css/layout.css"
rel="stylesheet" type="text/css" />
<link href="/css/reset_font_grid.css"
rel="stylesheet" type="text/css" />
<link href="/css/buttons.css" rel="stylesheet"
type="text/css" />
<link href="/css/inner-pages.css"
rel="stylesheet" type="text/css" />

/css/layout.css mean that the file layout.css is inside folder css in the root wherever you call it, for example if your page is like this

if you use

<link href="css/layout.css"
rel="stylesheet" type="text/css" />

it will look for the css with this route root/product/smartphone/blackberry/css/layout.css, because there's no file in that folder or route, it can't load the CSS file which cause your CSS get disturbed.

Categories : CSS

Related to : Why css & image get distorted on URL rewrite in
IIS rewrite module - Encoded space at end of URL, looking for a rewrite rule to redirect the page
Try to add some variants for the space: encoded one, decoded, and a space character, like this: <rule name="redirect space" stopProcessing="true"> <match url="^hxxp://| |s)+" /> <action type="Redirect" url="hxxp://" redirectType="Permanent" /> </rule> More information can be found here: Using the URL Rewrite Module ASP.NET MVC an

Categories : C#
URL rewrite in Wildfly?
You may also want to look at Rewrite, which will be the core of PrettyFaces 4. It's more dynamic and can intercept URLs if you require login.

Categories : JSF
How to rewrite url in django
Returning a redirect will "remove" the querystring from the url. The storefront view checks if that querystring is in the url, sets a flag in the session, then redirects. If that string isn't there, and the session flag isn't set, it redirects back to the other website. def storefront(request): if request.GET.get('enki') == '0011': request.session['from_main_site'] = True re

Categories : Python
DNS rewrite in or DNS redirection in
Since you're referring to an aspx page, I'm assuming you're running on IIS. In that case, you may install the URLRewrite module into your IIS server. Then, within IIS management console, you may setup a rewrite rule to redirect any url coming in with the hostname of "" to "". Once you save this rule, your web.config file wi

Categories : Asp Net
Change image on click, keep image and remove if other image is clicked
var sourceSwap = function () { var $this = $(this); if (!$this.hasClass('active')) { var newSource = $'alt-src'); $'alt-src', $this.attr('src')); $this.attr('src', newSource); } } var makeActive = function() { var $this = $(this); // bring the active back (if any) to the first state if($('').length) { var

Categories : Javascript
Recently Add
How to start a new column in flex column wrap layout
Add record CSS not rendering Jtable
Inline CSS Does Not Work When Transferred to External Stylesheet
CSS Positioning Issue on Chrome
PhantomJS + CMYK color css3
Wrap an input with pseudo borders made of divs
Site doesn't display styling on Firefox or IE –– works fine with Chrome and Safari
CSS - Position image to the left + partly cut-off + responsive + Bootstrap
Can i cross-fade li elements using angularjs ngAnimate
hidden-sm in bootstrap 3
Ruby on Rails - Bootstrap / Form_for vs input_groups - How to stop styles butting heads
locating joomla files when I do inspet element in firefox
Some Images flicker in IE8
Tooltip CSS ONLY: focus and hover prevents access to following button
Strange shadowed boxes randomly appearing - CSS error?
Bootstrap popover dynamic size
Horizontal List Exceeding Right Margin
How to put !important in all CSS properties using SASS or CSS3?
Wrap content and remove extra whitespace?
Force div's height expand with it's container
Animation delay on page load
CSS Keep on-hover item open until another item is hovered on
Confused by LESS replace() function behavior
How to transform an image in SVG (or CSS) into a non-parallelogram shape?
Ignore CSS declaration on a specific control
Mark space for :after content non-breaking
2 inline images - 1 centered and 1 right using Bootstrap
Bootstrap - three sibling col divs, is this layout possible?
jquery mobile-vertically center two lines of button text
Change footer content in magento
© Copyright 2017 Publishing Limited. All rights reserved.