PHP Classes

PHP URL Rewrite: Generate Apache configuration to rewrite URLs

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-11-16 (10 months ago) RSS 2.0 feedNot enough user ratingsTotal: 153 All time: 9,013 This week: 135Up
Version License PHP version Categories
url-rewrite 1.0GNU General Publi...5HTTP, PHP 5, Configuration


This package can generate Apache configuration to rewrite URLs.

It can take a URL as a parameter and parses the URL to extract its parts.

The class can also generate Apache configuration to perform several types of URL rewriting that can be used by Web servers using Apache.

Innovation Award
PHP Programming Innovation award nominee
November 2022
Number 2
Many Web sites serve site pages using URLs that briefly describe the purpose of the pages in a way that is easy to understand for the users of those sites.

With easy-to-understand URLs, the users can decide if the pages may be interesting even before they click the links that point to the pages' URLs.

A good part of the PHP sites uses the Apache Web server with the mod_rewrite module to handle the access to the pages with those URLs to the actual PHP scripts that generate the response to the entrance to those pages.

The configuration of the Apache mod_rewrite module may not be easy to create because it requires a good understanding of mod_rewrite directives.

This package provides a simplification of the way the mod_rewrite configuration can be created.

It takes a Web site page URL and suggests several configuration formats that you can use to configure the Apache mod_write module for your site. You can use the configuration format that better suits your PHP application Web site URL structure.

Manuel Lemos
Picture of Pierre-Henry Soria
  Performance   Level  
Name: Pierre-Henry Soria <contact>
Classes: 42 packages by
Country: United Kingdom
Age: 32
All time rank: 39116 in United Kingdom
Week rank: 11 Up1 in United Kingdom Up
Innovation award
Innovation award
Nominee: 16x

Winner: 3x

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file license.txt Doc. Documentation
Plain text file Rewrite.class.php Class Class source
Accessible without login Plain text file style.css Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,013
This week:135Up
User Comments (1)
That's not how you program at all.
10 months ago (Space)