Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke
Author Message
Brujo
Regular
Regular


Joined: Jun 04, 2004
Posts: 84
Location: Germany

PostPosted: Sun Jul 12, 2009 2:43 am Reply with quote

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?

thanks Brujo
 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Sun Jul 12, 2009 8:15 am Reply with quote

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.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Brujo
PostPosted: Sun Jul 12, 2009 9:44 am Reply with quote

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]


thanks
Brujo
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©