How To Make Static HTML Website Use Permalinks Like Wordpress?

12 replies
  • SEO
  • |
Hello, how are you doing today?

Soon I will be starting a new website/blog on a particular niche. I don't want to use wordpress to build my website or any other cms out there.

I want to design and customize my site/blog as per my needs and also make it SEO optimized. In wordpress we have plugins to do this stuff automatically but I don't want to rely on them.

I have knowledge in HTML, CSS & a bit of PHP. Can anyone tell me:
  1. How can I make my static site seo optimized.
  2. How to use permalinks for my posts (use make-money-online.html - instead of post.php?id=1)

If you have any suggestions or links to tutorials please share with me.
#html #make #permalinks #static #website #wordpress
Avatar of Unregistered
  • Profile picture of the author Adeshile Victor
    Hmmmm!, It is simple. your permelink structure depends on if your website is a onepage site or multiple page.

    If it is a single page website structure, then, you need an id on the post, for example, if you want to refer to a about us section in the same page, put the id of the link the href tag, and it would just to the particular start of the page whenever clicked.

    If however it is on a different page, all you need do is name the page you want visited with the same permalink, for example, name your page make-money-online.html, then visit it using <a href="make-money-online.html">Make money here</a>

    Hopefully this helps.

    Cheers.
    {{ DiscussionBoard.errors[11433809].message }}
    • Profile picture of the author snaveed
      Thanks for your reply.

      I know how fetch and display multiple records on a single page using the id method. What I want to achieve is this:

      Convert this url from database:
      examples of.com/post.php?id=1
      examples of.com/post.php?id=2

      To

      example.com/make-money-online.php
      example.com/online-marketing.php

      I don't want to create pages for every single post. Like in WordPress we create multiple posts but no new pages are created for them and even it provides unique URLs to ever post.

      If you have any system that can do this thing, please let me know
      {{ DiscussionBoard.errors[11433835].message }}
  • Profile picture of the author MikeFriedman
    Originally Posted by snaveed View Post

    Hello, how are you doing today?

    Soon I will be starting a new website/blog on a particular niche. I don't want to use wordpress to build my website or any other cms out there.

    I want to design and customize my site/blog as per my needs and also make it SEO optimized. In wordpress we have plugins to do this stuff automatically but I don't want to rely on them.

    I have knowledge in HTML, CSS & a bit of PHP. Can anyone tell me:
    1. How can I make my static site seo optimized.
    2. How to use permalinks for my posts (use make-money-online.html - instead of post.php?id=1)

    If you have any suggestions or links to tutorials please share with me.
    Are you sure you have knowledge of HTML?

    This isn't a complicated question for anyone that knows even a tiny bit about building a website in HTML.

    If you are not using a CMS, none of your posts are going to use URLs like post.php?id=1. You are going to create them.
    {{ DiscussionBoard.errors[11433973].message }}
    • Profile picture of the author snaveed
      Originally Posted by MikeFriedman View Post

      Are you sure you have knowledge of HTML?

      This isn't a complicated question for anyone that knows even a tiny bit about building a website in HTML.

      If you are not using a CMS, none of your posts are going to use URLs like post.php?id=1. You are going to create them.
      This thing is getting more complicated, may be I am not able to explain well what I want to achieve. Lets try again... I'm not using wordpress, I created a custom website which is built using PHP, HTML & CSS.

      I'm looking for a way to translate:

      http://www.mysite.com/articles.php?id=1

      into

      http://www.mysite.com/articles/name_...base_with_id_1

      I'm okay with doing some sort of RewriteRule with Mod Rewrite, but I'm not sure how to do it exactly. My pages are coded in PHP pulling from a MySQL database.
      {{ DiscussionBoard.errors[11434014].message }}
      • Profile picture of the author MikeFriedman
        Originally Posted by snaveed View Post

        This thing is getting more complicated, may be I am not able to explain well what I want to achieve. Lets try again... I'm not using wordpress, I created a custom website which is built using PHP, HTML & CSS.

        I'm looking for a way to translate:

        http://www.mysite.com/articles.php?id=1

        into

        http://www.mysite.com/articles/name_...base_with_id_1

        I'm okay with doing some sort of RewriteRule with Mod Rewrite, but I'm not sure how to do it exactly. My pages are coded in PHP pulling from a MySQL database.

        So the URL that you are going to spit out for posts is in your code. You don't need to do anything in .htaccess.

        The only way you will be stuck with a URL like http://www.mysite.com/articles.php?id=1 is if you code it that way.
        {{ DiscussionBoard.errors[11434053].message }}
  • Profile picture of the author fastreplies
    I don't get it.
    Why re-invent the wheel?
    You're going to spend your time only to find nobody care about your site. Really?

    As to how to save it in format you want, it's all depends on how you will structure DB.
    {{ DiscussionBoard.errors[11434022].message }}
    • Profile picture of the author snaveed
      Originally Posted by fastreplies View Post

      I don't get it.
      Why re-invent the wheel?
      You're going to spend your time only to find nobody care about your site. Really?

      As to how to save it in format you want, it's all depends on how you will structure DB.
      So, what are your suggestion for this? Shall I use wordpress?
      {{ DiscussionBoard.errors[11434031].message }}
  • Profile picture of the author Nick Million
    If you're spending all this time and effort trying to create a posting structure like Wordpress has, then why not just use Wordpress and save yourself the headache?
    {{ DiscussionBoard.errors[11434080].message }}
    • Profile picture of the author snaveed
      Originally Posted by Nick Million View Post

      If you're spending all this time and effort trying to create a posting structure like Wordpress has, then why not just use Wordpress and save yourself the headache?
      The thing is I will be customizing my site as per the timely needs and I guess wordpress don't offer that much customization and I have to rely on plugins for most of the tasks.

      I am not saying wordpress is bad or has limitations but it does not fulfill my current requirements. So, I'm gonna stick with my custom built site at least for now.

      Any other suggestions or techniques are welcome...
      {{ DiscussionBoard.errors[11434112].message }}
      • Profile picture of the author Adeshile Victor
        If you are asking for my candid opinion, I would say since you know PHP, and it's not so much a complicated algorithm your website would be using or doing so to say, I will say why not just use wordpress? I don't know PHP much, but i can categorically tell you that, WordPress as we have it now, you can do pretty much any kind of customization with it.

        You can use powerful, yet free plugins such as "blank" and "Elementor" to make any kind of page structure, and also any kind of CSS customization.

        I will be glad to help in any way possible, just let me know if this was helpful.
        Cheers.
        {{ DiscussionBoard.errors[11434121].message }}
        • Profile picture of the author snaveed
          Thanks for your suggestions and I will get in touch with you when I plan to migrate to WordPress and need any help regarding that.

          You guys are awesome, keep up the good work.
          {{ DiscussionBoard.errors[11434132].message }}
  • Profile picture of the author paulgl
    permalink is BS. Wordpress is BS.

    Has nothing to do with shinola...or seo....just because wordpress is such a piece of sewage.

    Go out and learn to make websites. It's pretty dang easy.

    Then you won't have to worry about anything...

    Or get a real CMS....even google offers one for free via blogspot.

    They will host your site for free, too!

    Amazing....

    Permalink.....yeah baby, yeah!

    Paul
    Signature

    If you were disappointed in your results today, lower your standards tomorrow.

    {{ DiscussionBoard.errors[11434258].message }}
Avatar of Unregistered

Trending Topics