Mans
05-28-2005, 06:42 AM
I'm writing php script for a magazine. I want visitors to access issues in the following format:
magdomain.com/mm/yyyy/topic
For example: magdomain.com/6/2005/t-34
The .htaccess I came up with looks like the following:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)/(.*)/(.*)$ mag.php?d=$1/$2&p=$3
It works except in two cases:
1) The visitor types magdomain.com/6/2005 without backslash after 2005
2) The visitor is not typing issue's date after the domain, e.g. magdomain.com or magdomain.com/ only
Please help me!!! :confused:
TIA
magdomain.com/mm/yyyy/topic
For example: magdomain.com/6/2005/t-34
The .htaccess I came up with looks like the following:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)/(.*)/(.*)$ mag.php?d=$1/$2&p=$3
It works except in two cases:
1) The visitor types magdomain.com/6/2005 without backslash after 2005
2) The visitor is not typing issue's date after the domain, e.g. magdomain.com or magdomain.com/ only
Please help me!!! :confused:
TIA
