• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

HELP! RewriteEngine Rules issue

I am writing some rewrite rules, but I am having issue with one of them. This is what I have:

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.ful.lt$ [NC]
RewriteRule ^(.*)$ http://ful.lt/$1 [R=301,L]

RewriteRule ^r/(.*)$ index.php?redirect=$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ index.php?code=$1 [NC,L]

All rules work, except this one: RewriteRule ^r/(.*)$ index.php?redirect=$1 [L]
Instead I get a 404 not found, for example with this url: http://ful.lt/r/http%3A%2F%2Fwww.google.com I get The requested URL /r/http://www.google.com was not found on this server.

Anyone know why is that happening?
0
ApOG
Asked:
ApOG
1 Solution
 
dsmileCommented:
It's a known bug

https://issues.apache.org/bugzilla/show_bug.cgi?id=47241

I think you should provide the redirect url without 'http://'
0
 
ApOGAuthor Commented:
Yup! It was exactly that...

Thanks dsmile, always helpful!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now