Hi, I've done mod rewrite on my site so now it`s site.com/dir/ instead of site.com/dir.php But the problem is that when I visit site using /dir/ it doesn`t execute video properly, but when I visit site via /dir.php it works normally. But both links uses same php file as first is just rewrited in .htaccess
<a href="/videos/fat-loss-4-idiots.php?keepThis=true&TB_iframe=true&height=450&width=450">Video</a> Code (markup): When visiting site.com/file.php and click on Video it bumps video, but when I visit site.com/file/ and click Video, it just gets me to another page "fat-loss-4-idiots.php?keepThis=true&TB_iframe=true&height=450&width=450" where is that video. I just want it bump as it does when visiting site.com/file.php Any idea? Thanks
oh, sorry, I've misunderstand. .htaccess code is: Options +FollowSymLinks RewriteEngine On RewriteRule ^([^.]+)/$ /$1.php [QSA,L] Code (markup):
change your link to this <a href="http://www.yourdomain.com/videos/fat-loss-4-idiots.php?keepThis=true&TB_iframe=true&height=450&width=450">Video</a> change yourdomain.com to your domain name
JAY6390, rewrite doesn`t work your way.. @Bohra: it doesn`t make any difference.. Still looking for solutions
It won't work because the rule says to only redirect URLs like video/ & file/ to video.php & file.php and this URL doesn't end with /. What's the real URL it needs to go to?
Thanks for support everyone, but I decided to let my site in "site.com/page.php" way. I think it`s also good for SEO as long as it isnt like site.php?id=3453 ...and much easier to just let it as it is.