I am getting an issue with the linked files within the page that's impacted by the scope from the .htaccess file.

Here's the .htaccess file:

RewriteEngine On  
RewriteRule ^tp_update/id/([A-Z0-9]+)/([A-Z]+)/?$ update_taxpayer.php?tp_id=$1&tp_type=$2 [NC,L]

I did not have any error, and that i can access this site:


But however ,, all of the files that are associated with update_citizen.php may also be affected. After I see the page source and follow the link css file. It states the file is not found:

<link href="../../css/style.css" rel="stylesheet" type="text/css" media="screen" />

And That I understand this:


Rather than the hyperlink that we declared above.

How do you circumvent with this particular?It is possible to most convenient way of connecting files when mod_rewrite is enabled.

You may either use absolute links as Dragon recommended, or make use of the <base href="absolut_base_url">

What this may is make all of your relative calls start can start the complete_base_url. So (making use of your style example) should you just had css/style.css because the href, the browser will endeavour to call http://yoursite.com/absolute_base_url/css/style.css
rather than