Apache rewrite rules query having regular expression and runs recursively?

You can do this in 2 steps using mod_rewrite. The first step is to remove all of the "+" from anything after try/this then the second step is to check if the request originally had "+" but the current URI doesn't.

You can do this in 2 steps using mod_rewrite. The first step is to remove all of the "+" from anything after /try/this/, then the second step is to check if the request originally had "+" but the current URI doesn't. This rule will keep removing "+" signs until there aren't any.

But we're just passing this through the rewrite engine. RewriteRule ^try/this/(.*)\+(.*)$ /try/this/$1$2 PT This rule checks if the original request had a URL with "+" in it, and if it does, check to see if they've all been removed. If so, end all the rewriting and redirect the browser: RewriteCond %{THE_REQUEST} \ /try/this/.

*\+. *\ HTTP RewriteRule ^try/this/(^\+*)$ /try/this/$1 R,L You mentioned that you wanted to redirect to the /try/this/ URL without the "+" signs. But if you just want to rewrite it internally and not redirect the browser, you don't need the 2nd part, just the first rule will remove them.

This does not seem to work. It only removed the + plus sign from the last two letter. I want this to work recursively removing all the plus sign.Example.Com/try/this/all+letters+with+plus -> example.

Com/try/this/all+letters+withplus You were correct, I just want it to rewrite internally not redirecting this to different URL. Any suggetions.Thanks. I find some lead in this direction with your suggestions.

– JavaBugger Nov 14 at 0:15 If you don't need redirect, then just use the top rule. When I enter RewriteRule ^try/this/(.*)\+(.*)$ /try/this/$1$2 PT in my . Htaccess file, and tested with "example.

Com/try/this/a+b+c+d+++++e++++f++++++g+h+++++", I see a request for "example. Com/try/this/abcdefgh" in the logs. – Jon Lin Nov 14 at 1:02.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions