SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    960
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Talking What is the Diffrent between ... ?

    Hai,

    What is the diffrent between RedirectMatch & RewriteRule

    Bought do the same its like, re-directing?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Those don't appear to be PHP functions.

  3. #3
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    960
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Dan,
    Oh i am really sorry, it was apache, i was in the php mood when posting. sorry. can sombody move this to an appropriate forum.

  4. #4
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    According to the documentation for mod_alias, the redirect directives (like RedirectMatch) instruct the client to make another request for a new URI.

    If you create a RewriteRule that maps the URL "/blog/read/1" to "/blog.php?action=read&id=1", the results of the blog.php access are sent in response to the /blog URL without any client-side redirection occurring.

    You can use mod_rewrite to do redirection as well, but it's a choice you make.

  5. #5
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    960
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks Dan,


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •