Page 1 of 1

simple mod_rewrite

Posted: Tue Jun 12, 2007 9:19 am
by psurrena
I'm new to mod_rewrites. Could any help and tell me what is wrong with this?

Code: Select all

RewriteEngine On
RewriteRule ^job-(.*).html/ index.php?action=1&id=$1
and my php is:

Code: Select all

echo '<a href="view-'.$row['id'].'.html">'.$row['title'].'</a>';

Posted: Tue Jun 12, 2007 9:28 am
by psurrena
I just got it to work BUT now it ignores the external stylesheet...

Code: Select all

<link rel="stylesheet" href="library/style.css" type="text/css" media="screen" title="WRT CSS" charset="utf-8" />

Code: Select all

RewriteEngine On
RewriteRule ^job-(.*).html$ index.php?action=1&id=$1

Code: Select all

echo '<a href="job-'.$row['id'].'.html">'.$row['title'].'</a>';
Any help would be appreciated!

Posted: Tue Jun 12, 2007 9:30 am
by psurrena
Forget it - Just a couple reloads fixed everything...