apache - I need .htaccess redirection to video.domain.com/date/id -


i need redirect;

http://video.domain.com/date/videoid   

to

http://www.domain.com/video/video.php?date=$date&videoid=$id 

thanks lot...

rewriteengine on rewritecond %{http_host} ^video\.domain\.com$ [nc] rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^([^/]+)/([^/]+)/?$ video/video.php?date=$1&videoid=$2 [l] 

do note above work if both domain.com , video.domain.com hosted on same server.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -