Grow your CSS skills. Land your dream job.

How to do it like in the CSSTricks.com

  • # June 12, 2008 at 6:13 pm

    Hi Everybody,

    I am using pretty links in my wordpress. So my links are like http://www.domain.com/post-title

    When I click on for example videos tab on CSSTricks.com it takes me to a URL like http://css-tricks.com/videos. I believe Chris did that page manually?

    So I am about to make my blog online and I really wonder how can I do this? Am I suppose to open that folder called videos in the root, and do some magic stuff in in .htaccess?

    If it is like that how come the URL is not http://css-tricks.com/videos/index.html

    And help will be very much appreciated,

    Best Regards

    # June 13, 2008 at 12:09 am

    The videos section is hand-coded, not part of WordPress, like you mentioned. The full link is actually:

    http://css-tricks.com/videos/index.php

    You don’t need the "index.php" part at the end because the host that I’m on is smart enough to look for a matching index file. I am thinking about moving these inside of WordPress though, at some point. Hand coding each page just isn’t the best solution. What’s cool about WordPress 2.5 is that you can build special page templates. So I could build a "videos" template and create a "page" for each video. Would be a lot easier on my part… I just gotta get around to doing it. Plus then figuring out a good way to redirect all those existing pages to the new pages (they won’t be able to have the same URL) without breaking any links.

    # June 13, 2008 at 5:16 am

    I understand your point, thank you for your answer, maybe this, http://www.ndesign-studio.com/blog/tricks-tips/htacess-redirect/, can help you with redirecting the old links to the new ones.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".