|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
> 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 !!! |
|
![]() |
| Outils de la discussion | |
|
|