Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts

    Wild Card current link

    Here is what I want

    if you put in http://www.url.com/blog/*

    you could get many matches like:
    http://www.url.com/blog/index.php
    http://www.url.com/blog/post/10/12/07/
    http://www.url.com/blog/search.php
    etc;

    or http://www.*.url.com
    could be http://www.subdomain1.url.com/
    http://www.sub2.url.com/
    ect


    This would be used for a navigation.
    if(true) {echo"class=\"current\""}

    Thanks for the help, I have little knowledge in PHP.
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #2
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    You're welcome.

  • #3
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    confused even more now
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #4
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    Quote Originally Posted by twodayslate View Post
    Thanks for the help, I have little knowledge in PHP.
    Quote Originally Posted by aedrin View Post
    You're welcome.

  • #5
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Quote Originally Posted by twodayslate View Post
    confused even more now
    "So I looked up some things on a search engine, and I found this mod_rewrite tutorial. But when I try it, it isn't doing I tell it to do. Here is my .htaccess file: ......"

    That's the part I was looking for.

  • #6
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    wha ?
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #7
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Confusion is your friend.

    I already answered your question.

  • #8
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    use google is your answer?
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #9
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Correct. Your question is not exotic, and has been asked many times.

    Using various combinations of keywords that you have mentioned I come across several articles mentioning mod_rewrite. Since I mentioned it as well, it should be even easier for you to find something. All you had to do was enter the keywords 'php mod_rewrite' and you get plenty of tutorials.


  •  

    Posting Permissions

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