Dyanmic Url to main url Rewrite Rule.....

Discussion in 'PHP' started by fsmobilez, Dec 25, 2008.

  1. #1
    I want to redirect my dynamic urls to 404 page

    right now i m using this code


    #
    RewriteCond %{QUERY_STRING} ^(joke_id=[^&]+&cat_id=+) 
    RewriteRule ^ http://www.example.com/%1 [R=301,L]
    PHP:
    I know there is problem in rewrite rule

    Will u plz post the correct code so all dynamic ursl get redirected to 404 page


    In simple

    i want A 301 redirect to a page that actual returns a 404 http status (and not just the 404 message)

    Thanks
     
    fsmobilez, Dec 25, 2008 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    EricBruggema, Dec 28, 2008 IP