Jump to content

[SOLVED] how to format your internal links when you have apache url rewriting on?


physaux

Recommended Posts

Hey guys, I have url rewriting, so that:

 

website.com/first/second/third

 

becomes

 

website.com?id1=first&id2=second&id3=third

 

So essentially all the pages come from just one page, index.html.

My question is, say if I am writing the php for a page, which for the user would appear as:

website.com/first/second

 

How can I send them to

website.com/first/apple

?

 

Here are the possibilities I was thinking of:

first/apple
website.com/first/apple             //(what I think)
index.php?id1=first&id2=apple
index.php/first/apple

 

Which one is right? I just want to link the to a page.

Any suggestions/ tips in relation to this? Am I doing it right?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.