- Code, Content, and Presentation
-- Apache Web Server
---- .htaccess redirect without query string
- 12:27 pm on Jun 26, 2013
...we need to know where the query is coming from. mod_alias didn't simply invent it; it had to be there already.
The query is coming from another RewriteRule in .htaccess which is
RewriteRule ^play-([0-9a-zA-Z?-]+)-online-([0-9]+) index.php?task=view&id=$2&name=$1 [L]
RewriteRule blahblah [R=301,L]
The [R=301,L] seems to do nothing with my urls.
RewriteRule 301 /play-([0-9a-zA-Z?-]+)-online-([0-9]+).html http://www.example.com/online-games/$1.html [L,R=301]
That does not redirect the url to anything. It just opens the url the way it is.
Brought to you by