Semantic URL htaccess Tutorial SEO Friendly Clean Links Rewrite


[ad_2]

Lesson Code: http://www.developphp.com/video/Miscellaneous/Semantic-URL-htaccess-Tutorial-SEO-Friendly-and-Clean-Links In this video exercise we …

source
[ad_1]

24 replies
  1. Adam Khoury
    Adam Khoury says:

    If you lose the linkage to your images, css, js or any external files… read this below:
    That happens when we use relative paths to resources in our page.
    Change:
    images/1.jpg
    to
    /images/1.jpg
    Add / before the relative path to the external resources that seem to have disappeared. What that does is makes the path absolute instead of relative, meaning the file can access the resources like normal. It behaves that way because those rewrite directories do not actually exist on the server so the file has trouble finding the relatively linked to resource. Or use the full absolute URL path to the external resource the page is linking to.

    Reply
  2. Ventures
    Ventures says:

    I found you once years ago and then I lost you. Now I found you again. Thank God! You're the best ever Adam. This world needs someone who flat out tells you how to do something and you do it in a way that anyone can understand. I hope you never ever stop making videos man. You are a blessing.

    Reply
  3. Ptmp727
    Ptmp727 says:

    Good video, but Im struggling to find a comprehensive video about this subject.
    Even in this video, its a bit hard coded, what if I have 50 pages? And not every page is called user,
    I managed to create a dynamic front controller for index.php
    But now I want it to dynamically remove the .php from multiple pages such as: /About, index.php/Contact etc without the .php extension, as well as the ability to go back to home linking to index.php

    Reply
  4. James A Wilson
    James A Wilson says:

    Great tutorial. Learned a lot. Added the needed code to a module on my site. Created "Uncaught SyntaxError: Unexpected token <" errors for 8 of the files linked from the module. Added a '/' in front of the path to each file and got a 404 error. Any idea as to a solution.

    Reply
  5. Mahboob Ahmed Chishti
    Mahboob Ahmed Chishti says:

    thanks for the great tut's ,, can u plz make a tuts where in we can ask htaccess to skip few pages (like about us / contact us etc pages ) and activate slug on on profile page / details page / user page etc (basically asking where dynamic content is required.. ) this was the first part ..
    second part is fetching dynamic content from article .. it show http://www.web.com/article/ 1/new article
    now how can we make it to render http://www.web.com/new article hiding in between dynamic values.. if possible… looking forward can it be possible to have both requirement in 1 .htaccess file thanks in advance

    Reply
  6. Khalfan Mohamed
    Khalfan Mohamed says:

    when I click on the first link the contents get loaded, but when I click another link in the same page which shares the same RewriteRule, the link of the second gets added to the first link and no changes I get, Help me solve this problem please

    First click
    http://localhost/mazoezi/article/9/Event

    second click on another link
    http://localhost/mazoezi/article/9/article/11/Event

    my .htaccess file

    RewriteEngine On
    RewriteRule ^article/([0-9]+)/([0-9a-zA-Z]+) index.php?id=$1&type=$2

    Reply
  7. Nic Parker
    Nic Parker says:

    bro what is up with this htaccess URL page.? It takes info from one page….and puts it on another page though the server network you have? So no code goes on the page or how to you get the get and post to function through the htaccess? Seems everyone is missing that….It would be helpful to have a example that works thought a htaccess and the string query and tags.
    I just to do HTML so this is PHP and need to upload PHP file to the htaccess as a fresh page to accept the action? Who knows right?

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.