Rewrite Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm having a perplexing problem with a rewrite rule (it's off topic but it's Friday!).  My initial path is  piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful and that works great.  However, in my script I want to change the zero in the path to a 1.  This tells it to generate a spreadsheet.  When my new link is clicked on I wind up with  piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful/piccDetails/index/1/linetypes/2012-01-01/2012-12-31/Successful.  Each click just adds to the end of the URL instead of replacing it.  My .htaccess file looks like this:
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?url=$1 [PT,L]

I'm guessing there's something wrong in it but I don't know what.  Any help would be appreciated.

Thanks!
Floyd



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux