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
neralex
The Mouse Is Extension Of Arm


Joined: Aug 22, 2007
Posts: 1296
Location: Germany

PostPosted: Thu Apr 25, 2013 9:30 am Reply with quote

I have the following get-url:

Code:
&search=r+a+t+e


Through urlencode($search) i get:

Code:
r%2Ba%2Bt%2Be


Give it a better solution for a tap-file as to allow all?:

Code:
&search=([^/]*)


Thanks.
 
View user's profile Send private message
montego
Site Admin


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

PostPosted: Fri Apr 26, 2013 6:40 am Reply with quote

Sorry, neralex, I am not following your question/comment. Would you please expound on this a bit? Thanks.

_________________
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
neralex
PostPosted: Fri Apr 26, 2013 7:41 am Reply with quote

Sure!

url: modules.php?name=test&search=r+a+t+e

Code:
$urlin = array(

'"(?<!/)modules.php\?name=test&amp;search=([^/]*)"',
);

RewriteRule ^test-([^/]*).html modules.php?name=test&search=$1 [L]


I have tried this: ([a-zA-Z0-9_-]*) instead of ([^/]*) but it will not work. It seems only with ([^/]*) i get the correct result. Otherwise i have a broken url in the a href. Now is my question, if is ok to use ([^/]*) or exists a better solution for this.


Last edited by neralex on Wed Oct 29, 2014 4:04 pm; edited 2 times in total 
montego
PostPosted: Thu May 02, 2013 4:39 pm Reply with quote

Well, you didn't add the "+" sign into the re-write, so if that is truly the right URL string, you need to try:

([a-zA-Z0-9\+_-]*)

Let us know if that works.
 
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 ©