TulipTools Internet Business Owners and Online Sellers Community

Full Version: Creating search engine friendly URLs in PHP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Tutorial on Creating search engine friendly URLs in PHP.

Quote:One of the major reasons for using a server-side language such as PHP is for the ability to generate dynamic content. Often this will lead to single scripts that produce their content based on the input parameters (that is, the variables in the URL).

This article covers various techniques and methods for representing these parameters in the URL in a clean and “friendly” manner, as well as then how to read the parameters.

full article: http://www.phpriot.com/d/articles/php/ap...index.html

Article includes section on Apache mod_rewrite and Using the Apache ForceType directive and Using a custom 404 handler.
Putting the rewrite rules in .htaccess files is simpler.
[quote author=jezebel link=topic=2151.msg7806#msg7806 date=1137460174]
Putting the rewrite rules in .htaccess files is simpler.
[/quote]

Usually, although if someone is on a shared server and has a real dufus or boinktard for a web host (and there are many hosts like that) they might not be able to use .htaccess files for mod rewrite.  The default install method for  SuSe for instance is for Apache to be setup to ignore override directives in htaccess files (AllowOverride None) .  The Apache conf files have to be changed to enable overrides.