GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 12-Jan-2006, 07:47
kzar kzar is offline
New Member
 
Join Date: Jan 2006
Posts: 1
kzar is on a distinguished road

htaccess confllic!


Hello and thanks in advnce for any help....

I have the folowing root structure:
{folder1}
{folder2}
.htaccess
file.php
and the htaccess rule is
RewriteRule ^([^/]+)/([^/]+)/hotels/([^/]+)-([^/]+)-category\.htm$ file.php?area=$1&island_name=$2&island_name=$3&tna me=$4 [NC,L]

so this will give me : mysite.com/area/island/hotels/island-hotels-category.htm

IF i add the folder {area} in the root folder (where the file.php is), the htaccess rule dont work
** it coniders the last ([^/]+)-([^/]+) part as one (1) variable, thus not being able to query my db.

IF i use (_) insted of (-) in rule (and in links in page), the htaccess rule works fine giving me
mysite.com/area/island/hotels/island_hotels_category.htm

Any ideas on what the problem/conflict may be?
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic htaccess Question justinhn Apache Web Server Forum 3 13-Jun-2005 09:20
htaccess: deny by http_user_agent tim9021 Apache Web Server Forum 2 21-Mar-2005 08:28
Denying directory listing and htaccess question meet_raman Apache Web Server Forum 11 01-Jul-2004 11:20
can i check the url the user tries to access pelegk2 Apache Web Server Forum 6 07-Jan-2004 01:00
bypass htaccess fraggle two Apache Web Server Forum 3 11-Nov-2003 04:56

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:35.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.