0

Ok, the title may sound a little weird, but I think that kinda describe it.

So basically I want make this:

/?url=http://someUrl.com/

Into this:

/http://someUrl.com/

I know how I can do it, if there was no "http://", "https://" or extension... So that's what I ask you guys about :D

I've tried to do RewriteRule ^([^./]*)$ index.php?url=$1, but doesn't work with http or extension

http(s), is not a requirement, but it should be able to be there.

Mobilpadde
  • 1,871
  • 3
  • 22
  • 29

1 Answers1

1

try using:

RewriteRule ^(http.*)$ index.php?url=$1
Gerben
  • 16,747
  • 6
  • 37
  • 56
  • Thanks, kind a what I needed.. Played around with yours a little, and came up with this http://regexr.com?3053d I don't know how I got from yours to mine, but i did, so thanks again :D – Mobilpadde Feb 27 '12 at 14:41
  • Seems like a bit of overkill to detect urls in the path. But if it works, it works. – Gerben Feb 27 '12 at 15:46