0

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?

Chris Morgan
  • 86,207
  • 24
  • 208
  • 215
Donovant
  • 3,091
  • 8
  • 40
  • 68

1 Answers1

1

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/.

Jon Lin
  • 142,182
  • 29
  • 220
  • 220