htaccess conflict between lines

Ask your mod_rewrite and Redirection questions here, and get answers!

htaccess conflict between lines

Postby punkrazio » 07 May 2008 17:32

This is my htaccess file:

Code: Select all
RewriteEngine ON

RewriteBase /www.imexserve.it/

RewriteRule ^product-category\.html$ pcategory\.php [L]

RewriteCond %{REQUEST_URI} !^(.*)guide-(.*)\.html
RewriteCond %{REQUEST_URI} !^(.*)microbiological-test-(.*)\.html
RewriteCond %{SCRIPT_FILENAME} !^(.*)inpage\.php
RewriteRule ^(.*)\.html$ pcategory\.php?path=$1 [L]

RewriteCond %{REQUEST_URI} !^(.*)guide-(.*)\.html
RewriteCond %{REQUEST_URI} !^(.*)microbiological-test-(.*)\.html
RewriteCond %{SCRIPT_FILENAME} !^(.*)inpage\.php(.*)
RewriteRule ^(.*)-page-(.0-9)\.html$ pcategory\.php?path=$1&pg=$2 [L]

RewriteCond %{REQUEST_URI} ^(.*)guide-(.*)\.html
RewriteRule ^guide-(.*)\.html$ guide\.php?guida=$1 [L]

RewriteCond %{REQUEST_URI} ^(.*)microbiological-test-(.*)\.html
RewriteRule ^microbiological-test-(.*)\.html$ mbtest\.php?mb=$1 [L]

RewriteCond %{SCRIPT_FILENAME} ^(.*)inpage.php
RewriteRule ^(.*)\.html$ inpage\.php?permalink=$1 [L]



without these lines:

Code: Select all
RewriteCond %{SCRIPT_FILENAME} ^(.*)inpage.php
RewriteRule ^(.*)\.html$ inpage\.php?permalink=$1 [L]


everything works good, instead with that when i try to rewrite a page that access to inpage.php?permalink=...
i got a conflict with these lines:


Code: Select all
RewriteCond %{REQUEST_URI} !^(.*)guide-(.*)\.html
RewriteCond %{REQUEST_URI} !^(.*)microbiological-test-(.*)\.html
RewriteCond %{SCRIPT_FILENAME} !^(.*)inpage\.php
RewriteRule ^(.*)\.html$ pcategory\.php?path=$1 [L]


without the rewritecond nothing work except pcategory.php

can u help me plz??

a problem example shoud be like this:

now the problem is

if i visit path.....html so i call pcategory.php?path=.....
everything works good

instead if i call permalink.........html so i call inpage.php?permalink=......
apache process pcategory.php instead of inpage.php


help help help
bitjar - guide, tutorial, where you can write yours...come to visit us at http://bitjar.netsons.org
punkrazio
 
Posts: 4
Joined: 07 May 2008 17:21

Re: htaccess conflict between lines

Postby punkrazio » 08 May 2008 12:40

can someone help me plz??
bitjar - guide, tutorial, where you can write yours...come to visit us at http://bitjar.netsons.org
punkrazio
 
Posts: 4
Joined: 07 May 2008 17:21

Re: htaccess conflict between lines

Postby mod_rewrite » 09 May 2008 21:48

I'd like to help but you haven't explained the problem enough.. please be more detailed in what you want and what is happening
mod_rewrite
 
Posts: 102
Joined: 30 Oct 2006 19:55


Return to Redirect or Rewrite Questions



Who is online

Users browsing this forum: Acennasnacrah, RombNeore