How to rewrite this URL?

Discussion in 'Site & Server Administration' started by Fracisc, Sep 16, 2012.

  1. #1
    Current URL: index.php?cmd=imageview&var1=Quotes/Your+time+is+limited.jpg


    Rewritten as: RewriteRule ^([^-]*)-([^-]*)\.html$ /index.php?cmd=$1&var1=$2 [L]

    It works fine as long as there is no "/" in the var1 but some links need it to be there. How can I rewrite it in this case?

    You can see at http://fpb.me/imageview-Cartoons/Tom+and+Jerry.jpg.html. The script works just fine but the sharing is not (facebook share for instance).

    Thanks!
     
    Fracisc, Sep 16, 2012 IP
  2. cesurasean

    cesurasean Active Member

    Messages:
    269
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #2
    You may want to join #httpd on irc.freenode.net to get some help with this, if you still need it.....
     
    cesurasean, Feb 23, 2013 IP