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
    Regular Coder
    Join Date
    Mar 2010
    Posts
    235
    Thanks
    39
    Thanked 6 Times in 6 Posts

    Redirect with Parameters

    I want to direct any url that has mysite.com/abc/anything
    to mysite.com/anything/?abc=yes

    where anything can be any text

    I've started this below, any thoughts?

    Code:
    rewritecond %{http_host} ^domain.com/abc/$1
    rewriterule %{http_host} ^domain.com/$1?abc=yes
    Last edited by mathceleb; 07-18-2012 at 11:00 PM.

  • #2
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    6
    Thanks
    0
    Thanked 1 Time in 1 Post
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]
    RewriteRule ^abc/(.*)$ http://mysite.com/$1?abc=yes [R=301]


  •  

    Posting Permissions

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