SOLVED: mod_rewrite() help, please :)

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
wyrmmage
Forum Commoner
Posts: 56
Joined: Sat Oct 28, 2006 12:43 pm
Location: boise, ID

SOLVED: mod_rewrite() help, please :)

Post 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
Last edited by wyrmmage on Fri Nov 10, 2006 12:37 pm, edited 1 time in total.
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Post 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.
wyrmmage
Forum Commoner
Posts: 56
Joined: Sat Oct 28, 2006 12:43 pm
Location: boise, ID

Post by wyrmmage »

ok..looks like I wont have to use mod_rewrite then; thanks for your help :)
-wyrmmage
Post Reply