Thread: redirection

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    32
    Rep Power
    12

    redirection


    Hi:

    I recently put a new website in place and am creating redirect pages for people who bookmarked the old pages.

    I need to know how I can redirect users if they go to any page in a particular folder without having to create a redirect page for every single page in that folder?

    Is this possible? I imagine I'd have to write a script for it but I don't really know how.

    Any help will be highly appreciated. People with bookmarked pages are going crazy and complaining that they are not being redirected.

    Thank you very much in advance.
  2. #2
  3. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Austin, TX
    Posts
    7,186
    Rep Power
    2265
    Have you checked hotscripts, sourceforge, google.... (links in my sig) ?
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    32
    Rep Power
    12
    I looked up google and some newsgroups. I'm not really sure what to look for? A "redirection" script? I guess I'd better look before I waste any more of your time. Thanks
  6. #4
  7. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Austin, TX
    Posts
    7,186
    Rep Power
    2265
    Originally posted by usrbin
    I looked up google and some newsgroups. I'm not really sure what to look for? A "redirection" script? I guess I'd better look before I waste any more of your time. Thanks
    Its not a big deal. Take a browser through hotscripts and sourceforge... if you don't find anything there, post back, I'll give you a hand.
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    32
    Rep Power
    12
    I looked through "redirection" on hotscripts and looked at both url based and link based but couldn't really figure out which would work for me. It seemed like all of them did some kind of subdomain redirection. On sourceforge the redirect scripts were related to Squid server or were doing stdin/stdout redirects. I couldn't find one that would help me redirect all users trying to get into files in the /instr folder to go to a file in the /new folder.

    I really appreciate your help on this.

    Thanks
  10. #6
  11. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    78
    Rep Power
    11

    Thumbs up


    Use a meta refresh tag at the page you want to move them to:

    <META HTTP-EQUIV="refresh" CONTENT="3; url=http://www.yourdomain.com">

    Place this in your meta tag

    CONTENT= 3 (3 being the seconds before it sends them to that page

    This should work
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    32
    Rep Power
    12
    I've used the meta tag for individual page redirects. I need to redirect people trying to get to any of the 50 pages under the folder /instr to a new page.

    Thanks for your help.
  14. #8
  15. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Austin, TX
    Posts
    7,186
    Rep Power
    2265
    Originally posted by Reactor
    Use a meta refresh tag at the page you want to move them to:

    <META HTTP-EQUIV="refresh" CONTENT="3; url=http://www.yourdomain.com">

    Place this in your meta tag

    CONTENT= 3 (3 being the seconds before it sends them to that page

    This should work
    Right, but then he's forced to create a URL redirect on every old page he has... not ideal, nor what he's looking for.
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn

IMN logo majestic logo threadwatch logo seochat tools logo