Re: Rewriting urls

From: Date: Mon, 26 Mar 2007 16:49:48 +0000
Subject: Re: Rewriting urls
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-251384@lists.php.net to get a copy of this message
On Mar 26, 2007, at 12:14 PM, lists@dwsasia.com wrote:
Hi, I am having some problems getting my mod_rewrite to work on my development server. On my production server (linux) this works fine. But on my development server it woun't work. I have a file basicpage.php that is located in the webroot. I then have a .htaccess file with the following content: #DirectoryIndex index.php index.html #Options +FollowSymLinks #RewriteBase /relative/web/path/ <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^article/([0-9]+)/[-a-zA-Z]+$ /basicpage.php?id=$1 </IfModule> The rewrite works as expected on the production server, but on the development server it don't want to work. I also tried it on a windows machine but it don't want to work there either. Any suggestions/insights?
Yep, take this to the mod_rewrite forums @ http://www.modrewrite.com/ as this is a php list :) erik jones <erik@myemma.com> software developer 615-296-0838 emma(r)

« previous php.general (#251384) next »