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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -