View Single Post
Old 06-09-2017, 11:38 AM  
davidjp
Confirmed User
 
Join Date: Mar 2007
Posts: 14
SOS!Need help with htaccess mod rewrite

I am working with some SEOs these days.But the work has encountered some problems.
The mod rewrite has been enabled on my server. But when I wanna rewrite the php script file like video.php?id=1 to video/1/ it won't take effect.The rewrite rule shown below

RewriteEngine On
RewriteBase /
RewriteRule ^video/([0-9]*)/$ video.php?id=$1

when I input the /video/1/ it should point to /video.php?id=1
but it went to the 404 errors "FILE NOT FIND"

So does anyone know what's wrong with this?

Thanks.
davidjp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote