Hello, I am trying to figure out how this guy's web site (and i'm sure many others) does not have the kind of links I am used to creating to navigate within a web site. For example, if you click on any of the menu items on the top right hand of the screen, rather than going to awebsite.com/print.html it goes to awebsite.com/print/ and then DEFAULTS to the first line item. has the designer put an index file within each folder so that it automatically defaults to that? If anyone could shed some light I would GREATLY appreciate it! thanks in advance amanda
Is a new folder , and in that new folder you put your files : html php etc. If you use Filezill to upload your files an ex.: Your site have a folder with the name "web" open your web folder, and in that folder create another folder and put your files .html .php is simple. You'll have something like this : yoursite.com/newfolder/filename.html
Well I understand that part, but when you mouse over the links to other pages within the site, they link to yoursite.com/newfolder/ ... there is not html, php that is evident, at least to me..
Look : http://benhulse.com/print/ http://benhulse.com/print/index.php If you want to see that is the same , create a folder , a demo folder yoursite.com/demo/ and will be the same , but if you put yoursite.com/demo/index.php you'll see the same conten. This can be created to in wordpress with category yoursite.com/category/demo/ you can delete category and youll have only yoursite.com/demo/
This is becouse in the menu, he have put that url ( is better for seo ) to get PR for yoursite.com/demo/ <ul id="nav"> <li id="identity"><a href="../../identity/" title="identity">identity & logo design</a></li> <li id="print"><a href="../../print/" title="print">print design</a></li> <li id="webActive"><a href="../../web/" title="web">web design</a></li> <li id="photography"><a href="../../photography/" title="photography">vancouver photography</a></li> <li id="apparel"><a href="../../apparel/" title="apparel">apparel design</a></li> <li id="video"><a href="../../video/" title="video">video</a></li> <li id="etc"><a href="../../etc/" title="etc">etc</a></li> </ul> HTML:
iulzi is actually wrong about this. You can use .htaccess files to modify your URLs. For example, http://yoursite.com/print does NOT have to be in the print folder You can use mod_rewrite to rewrite your urls so that http://yoursite.com/print maps to http://yoursite.com/print.html. It's done all the time.
http://benhulse.com/print/ before you write something, visit the website to see how is it. In every folder he have the files php. ( index.php / test.php ).
This is only true for this particular website (http://benhulse.com/), the OP is asking how it's usually done in other websites. Most websites use mod_rewrite to remove the .php from their site so that http://website.com/print/ is actually not in the print folder or http://website.com/contact is actually not in the contact folder.
You can also edit your .htaccess file to allow for things like http://website.com/first-website-ever.php to become http://website.com/first-website-ever/
Read! You understand? He don't ask you how can be don , only want to know for that site. Read all the answers! Can be done with .htaccess ? yes, but this is not his question. Or want a coin? Becouse you know something about htaccess haha
Thanks everyone - I don't know anything about .htaccess but I see this is "standard." I'll look into it. Thanks again!