SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Pandora Tipem's Avatar
    Join Date
    Feb 2006
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    301 Redirect Quick Question

    I need to redirect everything from my /avatars/ directory to http://av.thedailyneopets.com. So this means mysite.com/avatars/falkw3j4i234/ would also go to av.thedailyneopets.com. I've tried:

    Code:
    redirect 301 /avatars http://av.thedailyneopets.com
    But that redirects it to that domain WITH any extra stuff AFTER /avatars.

    Thanks... I hope my question is clear.
    Tipem no fancy sig, yup
    Need Neopets Help? Try Neopets
    fun adoptable eggs

  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)
    Tip,

    I think you need a trailing / after /avatars - and it's supposed to carry on AFTER avatars/

    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


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
  •