Need a help on mod_rewrite

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need a help on mod_rewrite

    I am unable to do a suitable link for this type of link structure


    I want to make like



    I am facing trouble because I can't change the act= value.

    If this type of rule possible, or have any other idea ... please response!

    Thank You!

    #2
    I've never seen anything like

    Code:
    ?act=user/id/546238
    I usually see
    Code:
    ?act=user&id=546238
    Pretty URLs with .htaccess Rewriting Tips.
    libra.wen.ru

    Comment


      #3
      i have never seen this like before but rule for this will be

      Code:
      Options +FollowSymLinks
      RewriteEngine on
      
      RewriteRule _act_(.*)\.html stats.php?act=$1
      Your new URL would be: _act_user/id/546238

      WWW.9XHOST.NET

      Comment


        #4
        Code:
        ?act=user/id/546238
        This type of url is easily possible . When You are trying to send multiple value through $_GET[] in same parameter.
        In this code I am sending username, ID both with 'act' parameter.

        So there is nothing to worried about it.
        Last edited by bivaswap; 30.08.12, 05:43.

        Comment

        Working...
        X