• 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?
1 Solution
It's a known bug


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

Thanks dsmile, always helpful!

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