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
watch.php?v=qvLqn2NEsOE&title=Networkplus_tutorials.html
first I've create rewrite rule in .htaccess file
RewriteRule ^v-(.*)-(.*).html$ watch.php?v=$1&title=$2

so if the url is
v-qvLqn2NEsOE-Networkplus_tutorials.html
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 ?

e38cf778282331ccce1902a1ffce4061

make the css paths absolute with a / at the start

Member Avatar for diafol

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.

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.