Isn't there a way to tell the Rewrite rule to skip anything found in a js or images subfolder?

On Oct 25, 2009, at 12:26 PM, Ashley Sheridan wrote:

On Sun, 2009-10-25 at 11:04 -0400, Rob Gould wrote:

I'm trying to follow the RewriteRule docs to make it so that:

can be entered into the web-browser, and it transforms into:

The good news is that it does transform the url when I do this. The
bad news
is that it also attempts to transform all the links (including to JS
and images).

  Can someone tell me what I'd need to modify to avoid this problem
with the

My .htaccess file presently looks like this:

  Options +FollowSymlinks
  RewriteEngine On
  RewriteOptions MaxRedirects=10
  RewriteBase /

  RewriteRule ^packages/([^/]+)/([^/]+)$ /packages.php?title=
$1&eventid=$2 [NC]

It's because in your HTML the URL's to the JS and images are relative. Changing them to absolute should fix the problem


Reply via email to