Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

mod rewrite problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  apache 1.3 vhost logging going to wrong place  
Author Message
muppino

External


Since: Nov 22, 2003
Posts: 4



(Msg. 1) Posted: Sun Dec 21, 2003 5:20 pm
Post subject: mod rewrite problem
Archived from groups: alt>apache>configuration (more info?)

I whould use this rewrite rule

RewriteRule categoria_([^/]+).htm categoria.htm?id=$1 [L]
RewriteRule sottocategoria_([^/]+).htm sottocategoria.htm?id=$1 [L]

but when i call sottocategoria_?? it is parsed as categoria_??
how can i solve?
thanks
Andrea

 >> Stay informed about: mod rewrite problem 
Back to top
Login to vote
jring

External


Since: Jun 30, 2003
Posts: 154



(Msg. 2) Posted: Sun Dec 21, 2003 6:41 pm
Post subject: Re: mod rewrite problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > I whould use this rewrite rule
 >
 > RewriteRule categoria_([^/]+).htm categoria.htm?id=$1 [L]
 > RewriteRule sottocategoria_([^/]+).htm sottocategoria.htm?id=$1 [L]
 >
 > but when i call sottocategoria_?? it is parsed as categoria_??
 > how can i solve?

because categoria is a substring of sottocategoria...
either have the rule for sottocategoria before the one for categoria
or define your regexes more precisely.

joachim<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: mod rewrite problem 
Back to top
Login to vote
nospamrossz1

External


Since: Nov 23, 2003
Posts: 3



(Msg. 3) Posted: Sun Dec 21, 2003 11:27 pm
Post subject: Re: mod rewrite problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Muppy" <muppino.RemoveThis@NOSPAMlibero.it> wrote in
news:U_hFb.204830$e6.7778648@twister2.libero.it:

 > I whould use this rewrite rule
 >
 > RewriteRule categoria_([^/]+).htm categoria.htm?id=$1 [L]
 > RewriteRule sottocategoria_([^/]+).htm sottocategoria.htm?id=$1 [L]
 >
 > but when i call sottocategoria_?? it is parsed as categoria_??
 > how can i solve?
 > thanks

possibly by changing them to:

/categoria_
/sottocategoria_

etc.



--
Rossz

Remove 'NOSPAM' from my email address to reply directly<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: mod rewrite problem 
Back to top
Login to vote
spam3

External


Since: Jul 01, 2003
Posts: 411



(Msg. 4) Posted: Mon Dec 22, 2003 5:04 pm
Post subject: Re: mod rewrite problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Muppy wrote:
 > I whould use this rewrite rule
 >
 > RewriteRule categoria_([^/]+).htm categoria.htm?id=$1 [L]
 > RewriteRule sottocategoria_([^/]+).htm sottocategoria.htm?id=$1 [L]
 >
 > but when i call sottocategoria_?? it is parsed as categoria_??
 > how can i solve?
 > thanks
 > Andrea
 >
 >

Try using:
RewriteRule sottocategoria_([^/]+).htm sottocategoria.htm?id=$1 [L]
RewriteRule categoria_([^/]+).htm categoria.htm?id=$1 [L]

or this:
RewriteRule ^categoria_([^/]+).htm categoria.htm?id=$1 [L]
RewriteRule ^sottocategoria_([^/]+).htm sottocategoria.htm?id=$1 [L]

--
Justin Koivisto - spam.TakeThisOut@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: mod rewrite problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Mod rewrite problem - is it possible to use this rewrite rule to call a cgi script: RewriteRule ^xredirect:(.+) /path/to/redirect.cgi/$1and when the redirect.cgi script gets the request, decline it so that another rewrite rule could be used or the document orignally called..

ReWrite Problem - I am setting up a Zope Site (zope) behind an Apache Server. I have the ReWrite rule working correctly: <VirtualHost 10.0.0.12:80> <font color=purple> ; ServerName www.example.com</font> <font color=purple> ; Serve...

rewrite problem with name virtual hosts - Hi list, i have a little problem. I am using Apache 1.3, php4 perl and ssl. I've got several name virtual hosts all listen on the same ip address. I use mod rewrite to simulate static web pages. I put in the same rewrite rules in a couple of virtual..

Rewrite Rule Problem with Zope - I am setting up a Zope Site (zope) behind an Apache Server. I have the ReWrite rule working correctly: <VirtualHost 10.0.0.12:80> ServerName www.example.com ServerAlias example.com RewriteEngine on RewriteRule ^/(.*)..

rewrite HTTP Head problem - Hello, I use apache (port 80) and Zope (8080). I use RewriteRule /zeop/(.*) http://127.0.0.1:8080/$1 P but the problem is the HTTP Head is http://127.0.0.1:8080/ ans I would like HTTP Head is http://www.monsite.com/zope Thinks Sorry My English is very...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]