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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.