PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Brujo
Regular
Regular


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

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

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
Former Admin in Good Standing


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

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

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.
View user's profile Send private message Visit poster's website
Brujo
Regular
Regular


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

PostPosted: Sun Jul 12, 2009 9:44 am Reply with quote Back to top

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
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum