YoVDO

PHP: Clean URLs on Apache Server

Offered By: LinkedIn Learning

Tags

Apache HTTP Server Courses PHP Courses Regular Expressions Courses Search Engine Optimization Courses

Course Description

Overview

Optimize your URLs for search engines and site visitors. Learn how to use the Apache mod_rewrite module to create clean URLs for PHP sites.

Syllabus

Introduction
  • Welcome
  • What you should know before watching this course
  • Using the exercise files
1. Checking Your Setup
  • Testing whether Apache mod_rewrite is enabled
  • Enabling mod_rewrite in the Apache configuration file
  • Setting up the database for the example site
2. Basic URL Rewriting
  • How to use mod_rewrite
  • Creating simple regular expressions
  • Removing .php from the URL
  • Working with a nonexistent directory
  • Replacing a query string with a numeric value
  • Replacing a query string with a text value
  • Using RewriteBase
3. Advanced Techniques
  • Creating a clean URL for search results
  • Displaying the search results
  • Linking to a specific part of a page
  • Setting conditions for rewriting URLs
  • Creating a clean URL for any PHP file
  • Using RewriteMap with a text file
  • Using an indexed hash file with RewriteMap
  • Increasing the log level to troubleshoot problems
Conclusion
  • Review
  • Goodbye

Taught by

David Powers

Related Courses

Writing for the Web
Open2Study
Digital and Social Media Marketing
Salford Business School, University of Salford via iversity
Digital Marketing Capstone
University of Illinois at Urbana-Champaign via Coursera
Introduction to Google SEO
University of California, Davis via Coursera
Integrated Marketing Communications: Advertising, Public Relations, Digital Marketing and more
IE Business School via Coursera