This question already has an answer here:
hey SO I am attempting to use apache's mod_rewrite module to do some basic rewrting of url on my website so they become a little more seo friendly
basically I have a virtual host file that look like this
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org ServerName mind-knowledge.com ServerAlias www.mind-knowledge.com DocumentRoot /var/www/tagmenu <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/tagmenu> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all <IfModule mod_rewrite.c> RewriteEngine on RewriteRule /video/([0-9]+) /PlayVideo/index.php?videoID=13424 </IfModule> </Directory> </VirtualHost>
now from what I understand the rewrite rule should allow
http://www.mind-knowledge.com/PlayVideo/13424/ to be rendered as the page
http://www.mind-knowledge.com/PlayVideo/index.php?videoID=13424 is this correct?
As currently I get 404 , and i have run
sudo a2enmod rewrite and reloaded apache.
Can anyone help me in what I am doing wrong or suggest some ways to troubleshoot the problem thanks in advance. brendan