need help with creating internal links

by arttse
5 replies
  • WEB DESIGN
  • |
I am building a new site. I want to link my articles to my category pages instead of the homepage.

What I've done is create folders for my categories and put the index.html page within the folder, but when I test it I get the following

homepage/category1/category1/article

What I want is

homepage/category1/article 1

Can anyone give me some tips how to do this.
#creating #internal #links
  • Profile picture of the author David Ogden
    No quite sure what you are trying to do. If your category index page is catindex.htm and you have a separate categories eg cat1.htm cat2.htm then those are the links you use leave the index page alone as your homepage.

    Hope that helps
    Signature

    David Ogden an Entrepreneur at Markethive which uses a suite of free marketing tools to promote his opportunity. Contact:- Telegram @davidogden

    {{ DiscussionBoard.errors[2028290].message }}
    • Profile picture of the author arttse
      David

      Thanks.

      I'll try to explain what I am trying to do with a simple website.

      Lets assume I have a homepage, 1 category and 2 articles within the category.


      Is this how I name my files:

      homepage=index.html

      category=category.index.html

      article1=article1.html

      article2=article2.html

      Now how do I arrange my links so that the URL's look like the following:

      I want my category page to have the following URL.

      homepage/category

      I want my articles to have the following URL's.

      homepage/category/article1

      homepage/category/article2





      Originally Posted by David Ogden View Post

      No quite sure what you are trying to do. If your category index page is catindex.htm and you have a separate categories eg cat1.htm cat2.htm then those are the links you use leave the index page alone as your homepage.

      Hope that helps
      {{ DiscussionBoard.errors[2028756].message }}
  • Profile picture of the author pmrc
    I hope I am answering your question but:

    you should have your main index.html in your public_html folder (or whatever is similar in your cpanel)
    then a folder named category
    inside the category folder your should have an index.html file and other folders named article1 and article2 with index.html files inside of those.


    so it looks like:
    yoursite.com (homepage)
    yoursite.com/category/article1
    yoursite.com/category/article2
    yoursite.com/category/index.html

    Let me know if that is what you are trying to do
    {{ DiscussionBoard.errors[2028767].message }}
    • Profile picture of the author arttse
      pmrc

      That's what I am trying to do but I am getting confused with all the folders that need to be created.


      Originally Posted by pmrc View Post

      I hope I am answering your question but:

      you should have your main index.html in your public_html folder (or whatever is similar in your cpanel)
      then a folder named category
      inside the category folder your should have an index.html file and other folders named article1 and article2 with index.html files inside of those.


      so it looks like:
      yoursite.com (homepage)
      yoursite.com/category/article1
      yoursite.com/category/article2
      yoursite.com/category/index.html

      Let me know if that is what you are trying to do
      {{ DiscussionBoard.errors[2028810].message }}
  • Profile picture of the author pmrc
    I can create them for you if you want, just send me an email at pmrc@gmx.com or skype: blainjones with the details.

    Shouldn't take more than a couple minutes
    {{ DiscussionBoard.errors[2028818].message }}

Trending Topics