This should be the last question with what I'm currently working on....
Loading the content the code works fine. Using if/elseif statements to find what the extention is. Maybe I'm thinking about it too much, but I wanted to put something that if by chance the url got changed it would redirect back to the home page.
This is the original code:
This sorta works. It will display the home page, but the url typed will show the bogus address. IE:
www.mysite.com/index.php?content=bogusaddress will display the home page, but it's not the right address. I'd like to actually redirect them back to the home page.
Can php redirect the url itself? I can't seem to find anything in PHP to do that. Or... will I need to echo a javascript redirector? at the "else"?
Thanks,
RJ