1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

htaccess, sub folder rewrite to index.php

Discussion in 'Apache' started by rahim701, Jun 14, 2012.

  1. #1
    how can I do this?

    main link:

    http://www.domain.com/?link=whatever/something/everythting
    Code (markup):
    convert to:

    http://www.domain.com/whatever/something/everythting
    Code (markup):
    I tried with this:

    RewriteEngine On
    RewriteRule ^([^/]*)$ index.php?link=$1 [L]
    Code (markup):
    But not working.
     
    rahim701, Jun 14, 2012 IP
  2. RoseHosting

    RoseHosting Active Member

    Messages:
    156
    Likes Received:
    8
    Best Answers:
    8
    Trophy Points:
    88
    #2
    You can try with

    RewriteEngine On
    RewriteRule ^([^/]*)$ /?link=$1 [L]
    Code (markup):
     
    RoseHosting, Jun 16, 2012 IP