Apache HTTP Server Setup
Introduction
The simplest method for routing requests with Apache is an .htaccess file in the web root. ModRewrite is used to route most requests to a single PHP file. Directories containing only static files (such as /images/) are excluded from the routing, and left for Apache to serve.
Routing Requests
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !=/main\.php
RewriteCond %{REQUEST_URI} !=/favicon\.ico
RewriteCond %{REQUEST_URI} !=/robots\.txt
RewriteCond %{REQUEST_URI} !^/(images|js|css|fonts)/
RewriteRule .* /main.php [QSA,L]
</IfModule>
A downloadable version of this sample is available: .htaccess
* If your browser rejects files with a leading ".", rename the download to .htaccess before using it
Alternate Configuration Methods
The same settings could be made in the main Apache configuration file (httpd.conf), rather than an .htaccess file in the web root. The routing rules could also be made inside VirtualHost sections in any loaded configuration file. If your platform supports RewriteEngine without using the mod_rewrite.c module, remove the IfModule tags.
Ready To Go?
If you still need to configure the Hashtag Framework, go back to the Setup Guide
Done configuring services? Move on to the Development Guide