rewrite rule for virtual folder in url htacesss

Discussion in 'Apache' started by vn412, Dec 29, 2011.

  1. #1
    I have created a simple dynamic website with php and I am having trouble making my URL structure.
    I want my url to be
    http://www.mydomain.com/abc/classifieds
    should go to
    classifieds folder index page but the url should be like above.
    i have written the rewrite rule in htaccess but its not working:
    the folder abc above in example can be dynamic any combination of letters from a-z

    RewriteCond %{ENV:REDIRECT_STATUS} 200
    RewriteRule .* - [L]
    RewriteRule ^(.+)\.com\/([a-z]+)\/classifieds\/ http://mydomain.com/classifieds/index.php [NC]

    please help me out.
    Thanks in advance
     
    vn412, Dec 29, 2011 IP
  2. vn412

    vn412 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    please help me

    Thanks
     
    vn412, Dec 29, 2011 IP