redirecting dynamic url to static

Discussion in 'Apache' started by abhinavspoint, Dec 20, 2006.

  1. #1
    hey guy's

    i have rewritten dynamic url with mod_rewrite in .htaccess file.but how about redirecting the dynamic url's to static.heres my file

    Options +FollowSymLinks
    RewriteEngine on
    rewritecond %{http_host} ^xyz.com [nc]
    RewriteRule ^(.*)$ http://www.xyz.com/Videos/$1 [R=301,L]
    RewriteRule (.*)-(.*)\.htm$ view.php?card=$1&fid=$2

    so whats should be the code to redirect the dynamic url to static with 301
     
    abhinavspoint, Dec 20, 2006 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    what's the static url and what's the format of dynamic ones, give me some live examples please...
     
    krakjoe, Dec 20, 2006 IP
  3. abhinavspoint

    abhinavspoint Peon

    Messages:
    143
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0