Donovant
Donovant

Reputation: 3161

RewriteRule causes a malfunction of the other path (subdir), css/imgs/js

Like title, that rule:

RewriteRule pagtwo/pic/(.*) index.php?pic=$1 [PT,QSA]

Rule working, but not the file included by subdirectory for example

<link type="text/css" rel="stylesheet" href="css/base.css" media="all">
<img src="imgs/image.jpg">

and goes on

Directories are css, imgs and js, why they do not included correctly? Must I insert the absolute path for that directory?

Upvotes: 0

Views: 98

Answers (1)

Jon Lin
Jon Lin

Reputation: 143906

Try adding this to you page header:

<base href="/">

Because you're using relative paths, what would normally resolve relatively from / won't woek when resolving relative from /pagtwo/pic/.

Upvotes: 1

Related Questions