first, this is not realy shortlink specifyed, but I found no better Categorie.
I like to go the other way and try to rewrite for example via .htaccess the url : modules.php?name=Encyclopedia&op=content&tid=74 -> lexika.html?id=$1? [R=301,L]
I tryed several variations but without succes, as i found it has to do with questionmark. has some of you a hint for me how it can be solved?
Joined: Aug 29, 2004 Posts: 9071 Location: Arizona
Posted:
Sun Jul 12, 2009 8:15 am
I believe that regex reserved characters may have to be escaped (but didn't think that was so on the right-hand side so not 100% sure here). Try a backslash in front of the question mark.
Hi Montego, thats what i tryed with backsslash and so on before i wrote here. However I found finaly a solution for me, it seems the apache pass everything behind the questionmarkt to the query so my working solution looks now like:
RewriteCond %{QUERY_STRING} ^name=Encyclopedia&op=content&tid=([0-9]*)$
RewriteRule ^modules\.php$ lexika.html\?id=%1 [R=301,L]
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum