replacing http_ instead of stripping by index