hello guys, its been a while since I used htaccess file, but I know how to use it.
but the only problem I face is when using in this way
I have page for view video
first I've create rewrite rule in .htaccess file
RewriteRule ^v-(.*)-(.*).html$ watch.php?v=$1&title=$2

so if the url is
it will work perfectly.

but when I change it to
RewriteRule ^v/(.*)/(.*).html$ watch.php?v=$1&title=$2

the page shows but without CSS :( , what should I do before change for this rule in htaccess ?


make the css paths absolute with a / at the start

Member Avatar

whiteyoh may have it, but also you could try making exceptions for certain directories, e.g. your css directory, e.g.

RewriteCond %{REQUEST_URI} ^/(css|js|images)/

now its not found :(

Not Found
The requested URL /yt/v/PIfg1e0QbD0/Networkplus_tutorials.html was not found on this server.