SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy redirect vs modrewrite

    Hi!

    I have like 200 redirect in a .htaccess file.
    It has to be this much, because they are exact matches, like:
    Redirect /dunnowhat/page1001 http://otherdomain/page1001

    but i need this only for special "pages"..there are about 200.


    Is it faster to do with modrewrite?
    if yeah, how? :>
    200lines there too? :/

    thanks for replies, if there is any

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,692
    Mentioned
    20 Post(s)
    Tagged
    3 Thread(s)
    joe,

    Read recently that redirect is fine for simple redirects but mod_rewrite uses regex. If you can recognize a pattern to your 200 (or 2000) redirects, you could use mod_rewrite to do it all in a single line.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Wizard Dean C's Avatar
    Join Date
    Mar 2003
    Location
    England, UK
    Posts
    2,906
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have any standardization in these redirects. If so, as David said, you can use one line to match and do the redirects


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
  •