How does mod_rewrite work??

Discussion in 'Search Engine Optimization' started by slickazsilk, Jul 16, 2007.

  1. #1
    Hi i have been reading about mod rewrite 301 and URL redirecting, from some of the threads and links that was posted here. I have some questions that hopefully you guys can answer and help me with.

    1. first i check if the mod_write is installed with apache and is on.
    2. then i just add the codes/scripts in my .htaccess file and upload it together with my pages. (scripts written are from web tools mod_rewrite)

    for example:

    http://url.com/page.php?a=23&b=72

    to

    http://url.com/page/a/b/

    Is this all the things involved with this or am i missing a step? also will i be changing my links in my PHP pages or it should automatically redirect the pages to the optimized URL while still able to read the variables passed in the URLs?

    Thanks in advance masters!! im sorry if this wasted your time, hope someone helps me with this i really need it badly. :)
     
    slickazsilk, Jul 16, 2007 IP
  2. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #2
    are you using a custom cms or free cms? if you are using a free cms like wordpress, your job will be easier
     
    trichnosis, Jul 16, 2007 IP
  3. slickazsilk

    slickazsilk Peon

    Messages:
    77
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    im using a custom made CMS using php and mysql.. but theoretically these steps should do the trick right? thanks!
     
    slickazsilk, Jul 16, 2007 IP