PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Dynamic Mod rewrite
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Dynamic Mod rewrite

Réponse
 
LinkBack Outils de la discussion
Vieux 16/02/2007, 09h26   #1
Aggelos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Dynamic Mod rewrite

Hello everyone,
Mod rewrite gives me some headache lately could you me ?
If we have:

index.php?contentId=10&module=2&category=1
or in another instance we have just
index.php?contentId=1&module=1

How can I rewrite that to display respectivly:

index.php/cats/felix?module=2 (if I have no rewrite rule for module)
or
index.php/homepage?module=1 (if I have no rewrite rule for module)

What I cannot figure out is how to get in the.htaccess file, where my
mod rewrite rule is, the content title or category title or even the
module title... which are in MySQL DB. Can that be done Dynamically in
any way ?
If mod rewrite could access the DB and write the rules dynamically
then that would be all I need. Is that possible ?


Ideas ?
Thanks

  Réponse avec citation
Vieux 19/02/2007, 09h00   #2
Aggelos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Dynamic Mod rewrite

On Feb 16, 9:26 am, "Aggelos" <djje...@gmail.com> wrote:
> Hello everyone,
> Mod rewrite gives me some headache lately could you me ?
> If we have:
>
> index.php?contentId=10&module=2&category=1
> or in another instance we have just
> index.php?contentId=1&module=1
>
> How can I rewrite that to display respectivly:
>
> index.php/cats/felix?module=2 (if I have no rewrite rule for module)
> or
> index.php/homepage?module=1 (if I have no rewrite rule for module)
>
> What I cannot figure out is how to get in the.htaccess file, where my
> mod rewrite rule is, the content title or category title or even the
> module title... which are in MySQL DB. Can that be done Dynamically in
> any way ?
> If mod rewrite could access the DB and write the rules dynamically
> then that would be all I need. Is that possible ?


No one knows anything ? No idea at all ?
At least, tell me is it possible or not ?

Thanks

  Réponse avec citation
Vieux 19/02/2007, 10h05   #3
Rik
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Dynamic Mod rewrite

On Mon, 19 Feb 2007 10:00:35 +0100, Aggelos <djjelly@gmail.com> wrote:

> On Feb 16, 9:26 am, "Aggelos" <djje...@gmail.com> wrote:
>> Hello everyone,
>> Mod rewrite gives me some headache lately could you me ?
>> If we have:
>>
>> index.php?contentId=10&module=2&category=1
>> or in another instance we have just
>> index.php?contentId=1&module=1
>>
>> How can I rewrite that to display respectivly:
>>
>> index.php/cats/felix?module=2 (if I have no rewrite rule for module)
>> or
>> index.php/homepage?module=1 (if I have no rewrite rule for module)
>>
>> What I cannot figure out is how to get in the.htaccess file, where my
>> mod rewrite rule is, the content title or category title or even the
>> module title... which are in MySQL DB. Can that be done Dynamically in
>> any way ?
>> If mod rewrite could access the DB and write the rules dynamically
>> then that would be all I need. Is that possible ?

>
> No one knows anything ? No idea at all ?
> At least, tell me is it possible or not ?


I've told you before, no database connection in you .htaccess.

Also I think you've got the rewrite reversed, which confuses the hell out
of people. You claim people 'enter' your site with:
index.php?contentId=10&module=2&category=1
And you want to rewrite this internally to:
index.php/cats/felix?module=2

Doesn't seem correct to me?
--
Rik Wasmus
  Réponse avec citation
Vieux 20/02/2007, 09h58   #4
Aggelos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Dynamic Mod rewrite

> I've told you before, no database connection in you .htaccess.
Did you ? Sorry
> Also I think you've got the rewrite reversed, which confuses the hell out
> of people. You claim people 'enter' your site with:
> index.php?contentId=10&module=2&category=1
> And you want to rewrite this internally to:
> index.php/cats/felix?module=2
>

OUPS !!
I meant just http://www.mydomain.com/index.php/co...e=2&category=1
to www.mydomain.com/cats/felix and then probably ?module=2 because i
don't handle it or I could handle it but just display www.mydomain.com/cats/felix/2

Could you tell me when I am inserting a new category though or a new
child for that category, how will the Rewrite rule work out what name/
title relates to the contentid 10 , 11,12 etc...
and category 1 , 2, 3 etc...

How is it done ? It has to be possible !!!

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h25.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10874 seconds with 12 queries