WordPress give you the .htaccess code :

http://codex.wordpress.org/Using_Permalinks#Creating_and_editing_.28.htaccess.29

One thing I would suggest after going through this process myself is to create 
the page URL when you save the page and store the URL with that record.  Then 
you can use that URL field to search and find the content based on the URL in 
the browser.

------------------------

Keith Smith

--- On Fri, 5/17/13, Dan Egli <[email protected]> wrote:

From: Dan Egli <[email protected]>
Subject: PHP Question
To: "Provo Linux Users Group" <[email protected]>
Date: Friday, May 17, 2013, 4:31 AM

Hey folks, something I've been wondering. I'm sure we're all used to seeing
URLS that end in things like /file.php?req=12 or similiar. That's easy. But
lately I've seen an increasing number of pages that seem to put the php
page as a directory and the request as a separate file. A good example was
the ATA wiki page on kernel.org. That read
ata.wiki.kernel.org/index.php/ATA_Secure_Erase.



I could easily make a page that would pull up content by something like
index.php?section=ATA_Secure_Erase, but how on earth do you setup Apache to
recognise in this URL that index.php is not a directory and
ATA_Secure_Erase not a separate file? Or is that exactly what happened and
they are simply calling the directory index.php for whatever reason? This
is something that's been bugging me for a while. The way I understand
things, you'd need to configure Apache to send the index.php page, and then
you need to have some kind of IF check to see if ATA_Secure_Erase was set.
But at the same time, I'd wonder WHAT variable to check. Would it be
something like $_GET["ATA_Secure_Erase"]? Or would it be
$_GET["<something>"] == "ATA_Secure_Erase" or similiar?



Thanks for the tips on this. Like I said, it's been bugging me for a while.


--- Dan

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to