Page 1 of 1

SOLVED: mod_rewrite() help, please :)

Posted: Thu Nov 09, 2006 11:04 pm
by wyrmmage
First off, I'd just like to say that I know there are a lot of mod_rewrite() questions posted on these forums, so if there is a topic that answers my question below, feel free to direct me there :)
Basically, I have a link that looks like this: http://programming.ghettointeractions.com/?page=php and a link that looks like this: http://programming.ghettointeractions.c ... torial=one
I am attempting to make my site more search-engine friendly, and I heard that mod-rewrite was the way to go. I've looked up a few tutorials but, frankly, I find them a bit confusing (or useless)...how would I change the above URLs to something in the form of: http://programming.ghettointeractions.c ... al/one.php (or something to that effect)?

Any help is appreciated :)
-wyrmmage

Posted: Fri Nov 10, 2006 3:01 am
by Rovas
All major search engine now know how to navigate, cache and display pages like page.php?id=2. Now mod_rewrite it' s used for a n easier navigation. Basically will have to make a regular expression off the name of the page, the id in question and the name of the item indicated by the id which you' ll put in .htaccess file and create a small function to deal with that regex.
Search for mod_rewrite tutorial on Google, Yahoo and read them and return with questions.

Posted: Fri Nov 10, 2006 12:37 pm
by wyrmmage
ok..looks like I wont have to use mod_rewrite then; thanks for your help :)
-wyrmmage