SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    May 2001
    Location
    UK
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advanced redirection (via .htaccess?)

    OK, what I want to do is have it so when somebody types in

    http://www.mydomain.com/subdirectory
    they are taken to
    http://www.mydomain.com/dir.php?dir=subdirectory

    Any ideas?

    I thought having:
    Redirect /*/ http://www.mydomain.com/dir.php?dir=*
    ALso tried
    Redirect /* http://www.mydomain.com/dir.php?dir=*

    In the .htaccess would work, but it doesn't seem to. It just redirect /*/ directory rather than interpreting * as all directories. So I guess what I am asking is how do I tell .htacces to redirect all sub-directory traffic?

    There was an article on here about making search engine friendly URL's which I thought might help but couldn't find it!

    Any help appreciated.

  2. #2
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com


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
  •