Re: Rewrite Help
| From: | Marco Behnke | Date: | Fri, 28 Dec 2012 16:26:52 +0000 |
| Subject: | Re: Rewrite Help | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319967@lists.php.net to get a copy of this message | ||
On 28.12.2012 17:13, Floyd Resler wrote:
On Dec 28, 2012, at 11:09 AM, Marco Behnke <marco@behnke.biz> wrote:You know, with seeing all of the relevant code, nobody can point out the errorOn 28.12.2012 16:30, Floyd Resler wrote: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]where is the rewrite rule from 0 to 1? And can not see it here? Have you set a rewrite base? Do you use relative or absolute links on your page?