Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
PHP: Clean URLs on Apache Server

PHP: Clean URLs on Apache Server

1h 37mIntermediate2016-05-23

Authors

David Powers

David Powers

Developing websites since 1994

Course details

Clean URLs are great. They're elegant, easier to remember, and more user friendly than dynamic URLs. But the primary reason to use clean URLs is for SEO: to make it easier for search engines to index your site. This translates to better search results and increased page visits. Find out how to reap the benefits of clean URLs in your PHP code, in this course with PHP expert David Powers.

Rather than checking URLs individually, David shows how to evaluate and update them sitewide with the Apache mod_rewrite module. Watch these tutorials to learn how to enable mod_rewrite on your server, understand the structure of mod_rewrite rules, remove unnecessary file extensions, convert query strings into readable numbers and text, and use rewrite maps to look up complex values without regular expressions. Plus, learn how to enhance search results and provide searchers with links to specific parts of a webpage.

Learning objectives
Checking your Apache setup
Creating simple regular expressions
Removing .php from URLs
Replacing query strings
Displaying clean URLs in search results
Linking to parts of a webpage
Creating a clean URL for any PHP file

Skills covered

PHPFull-Stack Web DevelopmentWeb DevelopmentProgramming LanguagesOpen SourceSoftware DevelopmentDeep Dive (X:Y)

Concepts

0. Introduction

  • 01 - Welcome
  • 02 - What you should know before watching this course
  • 03 - Using the exercise files

1. Checking Your Setup

  • 04 - Testing whether Apache mod rewrite is enabled
  • 05 - Enabling mod rewrite in the Apache configuration file
  • 06 - Setting up the database for the example site

2. Basic URL Rewriting

  • 07 - How to use mod rewrite
  • 08 - Creating simple regular expressions
  • 09 - Removing .php from the URL
  • 10 - Working with a nonexistent directory
  • 11 - Replacing a query string with a numeric value
  • 12 - Replacing a query string with a text value
  • 13 - Using RewriteBase

3. Advanced Techniques

  • 14 - Creating a clean URL for search results
  • 15 - Displaying the search results
  • 16 - Linking to a specific part of a page
  • 17 - Setting conditions for rewriting URLs
  • 18 - Creating a clean URL for any PHP file
  • 19 - Using RewriteMap with a text file
  • 20 - Using an indexed hash file with RewriteMap
  • 21 - Increasing the log level to troubleshoot problems

Conclusion

  • 22 - Review
  • 23 - Goodbye

Related courses

Related learn paths

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
zarinpal
zibal