Hi friends,

I just want to rewrite my url using htaccess www.site.com/movie-discussion.php?movie=name&page=2 to www.site.com/movie-discussion/2-name.html I got the following code

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^movie-discussion/(.*)-(.*)\.html$ movie-discussion.php?thread=$1&page=$2

but it is going to the "movie-discussion" directory and as a result the css, javascirpt files which linked to this page is not working ..

Please help me

Thanks in advance
Rajeesh

You have to use absolute path.
You can define one php variable and use it in js, image, css path.

$siteurl = 'http://www.site.com';

<img src="<?=$siteurl?>/images/test.jpg">

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.