Log in

View Full Version : URL rewrite



crobinson42
01-07-2012, 05:45 PM
Hello everyone, I figured this would be the correct forum to post in but if i'm incorrect please advise and i'll remove my post.

I am designing a site with several DIR paths and would like to change is the ability for users to see the entire URL ie:

From: www.site.com/dir/dir/dir/file.php

To: www.site.com/

I understand this will not be search engine friendly and not allow users to create bookmarks but that is not my concern.

Thank you all for any input~

traq
01-07-2012, 06:17 PM
how do you expect users to navigate to different pages if you don't allow them to enter different URLs?

As you admit, this is generally a bad idea for usability reasons.

However, you could do it by making the entire site a single page, and use javascript (AJAX) to load different content. You might start here (http://css-tricks.com/video-screencasts/85-best-practices-dynamic-content/), and DD has a dynamic ajax content (http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm) script as well.

crobinson42
01-08-2012, 07:23 PM
I ended up using iframes with no borders for a clean look. The ajax is a bit confusing for me, i'll try another shot at that in the future thanks for the input

traq
01-09-2012, 12:04 AM
I'm sorry to hear that - I'm glad your immediate problem is solved, but frames are a very poor practice overall. From your original post, I'm sure you're aware of that, so I won't hound you about it. I would be happy to help you learn to work with Ajax, if you decide to give that a try.

Best of luck.