How To Make Static HTML Website Use Permalinks Like Wordpress?

by 12 replies
14
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.
#search engine optimization #html #make #permalinks #static #website #wordpress
  • 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.
    • [1] reply
    • 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
  • 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.
    • [1] reply
    • 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.
      • [1] reply
  • 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.
    • [1] reply
    • So, what are your suggestion for this? Shall I use wordpress?
  • 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?
    • [1] reply
    • 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...
      • [1] reply
  • 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

Next Topics on Trending Feed