Current location: Hot Scripts Forums » Other Discussions » Web Servers » htaccess conflict with similar url


htaccess conflict with similar url

Reply
  #1 (permalink)  
Old 11-08-07, 12:53 AM
kiko08 kiko08 is offline
Newbie Coder
 
Join Date: Oct 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
htaccess conflict with similar url

hello i have some problems with htaccess.
heres my current htaccess

RewriteEngine On
RewriteBase /

RewriteRule ^([^/]+)\.html$ /index.php?id=$1
RewriteRule ^([^/]+)/(.*)\.html$ /view.php?cat=$1&page=$2


it works when i have a url like
www.mysite.com/category/2.html

but i also want to make a page that has a url something like
www.mysite.com/category-2-1.html

with original url
http://www.mysite.com/viewitem.php?c...&page=2&item=2


whenever i use the url
www.mysite.com/category-2-1.html

it shows the page of
www.mysite.com/category-2.html
and disregarding the value of "item"

with my htaccess of
RewriteRule ^([^/]+)-(.*)-(.*)\.html$ /viewitem.php?cat=$1&page=$2&item=$3


can someone pls help me with this one?
thanks in advance.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
htaccess and problems passing variables in the URL. Nico Web Servers 1 01-07-07 05:31 AM
URL Rewriting...htaccess? landing Web Servers 4 07-28-06 09:05 AM
Change this AJAX script to accomidate dynamic url arandlett JavaScript 3 06-14-06 03:01 AM
URL Rotator/Randomizer with Ability to Prioritize (Weight)Entries mrongey Script Requests 9 02-10-06 01:06 PM
The Reasons Why do you Need URL Rewriting MODULE to Enchance your Web? handry PHP 11 08-05-05 07:32 AM


All times are GMT -5. The time now is 01:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.