I would like to be able to take a url from a MySQL database like www.domain.com/folder1/folder2/folder3/folder4/folder5/etc (that may have the www or not) and make it so it it will just be www.domain.com or domain.com. Can somebody tell me how to accomplish this?
Any help would be greatly appreciated.