C carmach New member Jul 21, 2007 24 1 0 Sep 6, 2007 #1 I want to rewrite hello-haha-blah.html?tits=iliketits to index.php?a=hello-haha-blah&tits=iliketits. I tried to use RewriteRule ^(.*)\.html?(.*)$ index.php?a=$1&$2 [L] but was unsuccessful. Does anyone have any idea what I'm doing wrong?
I want to rewrite hello-haha-blah.html?tits=iliketits to index.php?a=hello-haha-blah&tits=iliketits. I tried to use RewriteRule ^(.*)\.html?(.*)$ index.php?a=$1&$2 [L] but was unsuccessful. Does anyone have any idea what I'm doing wrong?
K kyleirwin New member Jun 25, 2006 1,818 32 0 Sep 6, 2007 #2 RewriteRule ^(.*)\.html\?(.*)$ index.php?a=$1&$2 [L] forgot to escape the ?
aim New member Jan 15, 2007 1,257 39 0 Minneapolis, MN www.webproleads.com Sep 6, 2007 #3 That's a pretty weak url rewrite. What are you trying to accomplish?
D DomainRealty I'm a Coder Mar 14, 2007 612 2 0 www.jrbcomputerservices.com Sep 7, 2007 #4 Why would you do that when you could do /pages/hello-haha-blah/iliketits.html RewriteRule (.*)\.?h?t?m?l?\?(.*)=(.*) /pages/$1/$2.html Jason
Why would you do that when you could do /pages/hello-haha-blah/iliketits.html RewriteRule (.*)\.?h?t?m?l?\?(.*)=(.*) /pages/$1/$2.html Jason
K kyleirwin New member Jun 25, 2006 1,818 32 0 Sep 7, 2007 #5 DomainRealty said: Why would you do that when you could do /pages/hello-haha-blah/iliketits.html RewriteRule (.*)\.?h?t?m?l?\?(.*)=(.*) /pages/$1/$2.html Jason Click to expand... and rewrite them to an .html page?
DomainRealty said: Why would you do that when you could do /pages/hello-haha-blah/iliketits.html RewriteRule (.*)\.?h?t?m?l?\?(.*)=(.*) /pages/$1/$2.html Jason Click to expand... and rewrite them to an .html page?
D DomainRealty I'm a Coder Mar 14, 2007 612 2 0 www.jrbcomputerservices.com Sep 7, 2007 #6 Fine then.. RewriteRule (.*)\.?h?t?m?l?\?(.*)=(.*) /index.php?a=$1&tits=$3 Jason Reactions: Xrproto