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 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2011
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .php?url=url.com

    How can i make the following work the way I want it?

    domain.com/test.php?url=google.com

    should show as domain.com/google.com

    ive tried tons of rewrites but none have worked so far

  • #2
    Regular Coder poyzn's Avatar
    Join Date
    Nov 2010
    Posts
    266
    Thanks
    2
    Thanked 61 Times in 61 Posts
    Quote Originally Posted by potato123 View Post
    How can i make the following work the way I want it?

    domain.com/test.php?url=google.com

    should show as domain.com/google.com

    ive tried tons of rewrites but none have worked so far
    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/google\.com <- put here your regexp rule
    RewriteRule (.+) test.php?url=$1 [L,QSA]
    Last edited by poyzn; 08-02-2011 at 10:55 AM.


  •  

    Posting Permissions

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