Apache mod_rewrite (.htaccess) - Request rewrites & redirects to site root if page or directory not found
There are many scenarios where mod_rewrite can be used on a web server to improve usability, optimise for search engines, perform redirects based of specific criteria and much more. The following are some examples of how to configure .htaccess files on an Apache web server to alter requests and actions taken by the web server, including configuring the server to redirect to the site root (or other specified page) if a page or directory is not found, configuring the server to convert components of a http request into query string parameters to be passed to a specific page/script for processing and display (without altering the original address entered into the browser).
Web Development & Programming in PHP, ASP.NET, XML, VB, .NET Framework, JavaScript and HTML/CSS for Web Applications, Internet Marketing and SEO
Sunday, January 17, 2010
Apache mod_rewrite (.htaccess) - Rewrite or Redirect Request URLs if page not found, or no www
Posted by
DanielS
at
10:55 PM
Labels:
.htaccess,
Apache,
mod_rewrite,
Tips and Tricks,
Webmaster Tools
2
comments
Saturday, January 9, 2010
Php RSS2Writer (v2.1) - Generate RSS 2.0 Feed - Usage Instructions & Download
RSS2Writer v2.1 has been updated to v3.0 beta. The new version can be downloaded at the Php FeedWriter website: http://phpfeedwriter.webmasterhub.net/
Php FeedWriter (v3.0 beta) now provides the ability to output to various feed formats. Php FeedWriter can currently generate Atom 1.0, RSS 2.0, RSS 1.0, RSS 0.92 and RSS 0.91 compatible feeds.
View more information about Php FeedWriter, including online documentation. For information about the latest update and release, see the article Php FeedWriter 3.0 (beta) Released.
A tutorial demonstrating how to build a feed using Php FeedWriter is also available on this blog:
How to Generate Feed Using Php (Atom 1.0 and RSS 2.0 Compatible)
Generate RSS 2.0 Compatible feeds in Php, using the Free Php RSS2Writer Class.
The Php RSS2Writer class has been updated. Recently implemented v2.1 updates allow CDATA to be incorporated if required. Version 2.0 included improved usability when using the RSS2Writer class to generate an RSS Feed from website or database content, as well as additional functionality required to generate valid RSS 2.0 Feeds. Usage instructions for the class are below.
Download Php RSS2Writer - Version 2.1
The download page also provides some additional information about the class and sample controller.
Php FeedWriter (v3.0 beta) now provides the ability to output to various feed formats. Php FeedWriter can currently generate Atom 1.0, RSS 2.0, RSS 1.0, RSS 0.92 and RSS 0.91 compatible feeds.
View more information about Php FeedWriter, including online documentation. For information about the latest update and release, see the article Php FeedWriter 3.0 (beta) Released.
A tutorial demonstrating how to build a feed using Php FeedWriter is also available on this blog:
How to Generate Feed Using Php (Atom 1.0 and RSS 2.0 Compatible)
Generate RSS 2.0 Compatible feeds in Php, using the Free Php RSS2Writer Class.
The Php RSS2Writer class has been updated. Recently implemented v2.1 updates allow CDATA to be incorporated if required. Version 2.0 included improved usability when using the RSS2Writer class to generate an RSS Feed from website or database content, as well as additional functionality required to generate valid RSS 2.0 Feeds. Usage instructions for the class are below.Download Php RSS2Writer - Version 2.1
The download page also provides some additional information about the class and sample controller.
Posted by
DanielS
at
3:44 PM
Labels:
Free Php Scripts,
Free Tools,
Php,
Php RSS 2 Writer,
RSS,
RSS Generator,
RSS Writer,
XMLWriter
30
comments
Wednesday, January 6, 2010
Php Date Time - 7 Methods to Calculate the Difference between 2 dates
Calculate the difference between two Dates (and time) using Php. The following page provides 7 methods for calculating the difference between two dates using Php, as well as some additional related resources to help with Date/Time calculations and manipulation using Php.
Depending on the type of server running Php (Windows/IIS/Apache, Unix/Apache), standard date methods provided by Php can sometimes produce inconsitent or incorrect results. The various methods provided on the page below cater for different scenarios where date/time calculations need to be made using Php to calculate the difference between dates.
See Php Date Time - 7 Methods to Calculate the Difference between 2 dates for details.
Depending on the type of server running Php (Windows/IIS/Apache, Unix/Apache), standard date methods provided by Php can sometimes produce inconsitent or incorrect results. The various methods provided on the page below cater for different scenarios where date/time calculations need to be made using Php to calculate the difference between dates.
See Php Date Time - 7 Methods to Calculate the Difference between 2 dates for details.
Posted by
DanielS
at
5:12 PM
Labels:
Date calculation,
Date Difference,
Date Time,
Development Resources,
Php,
References
0
comments