#1
  1. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,987
    Rep Power
    375

    RewriteRule not working


    NEVER MIND started working.. all i had to do was:

    RewriteRule ^([A-Za-z0-9_-]+)/?$ index.php?campaign_name=$1 [NC,L]


    Sorry for the vague title, didnt know how to word it properly.

    http://domain.name.com/name/ should internally point to:

    http://domain.name.com/index.php?campaign_name=name

    Code:
    RewriteRule ^/([A-Za-z0-9_-]+)/?$  index.php?campaign_name=$1 [NC,L]
    
    # RewriteRule ^campaign/([A-Za-z0-9_-]+)/?$  index.php?campaign_name=$1 [NC,L]
    commented rule works like this:

    http://domain.name.com/campaign/name/ TO: http://domain.name.com/index.php?v=name

    however i would like to get rid of that extra "campaign" in the URL
    Last edited by paulh1983; June 11th, 2013 at 11:24 AM.

IMN logo majestic logo threadwatch logo seochat tools logo