Parsing Question Marks in URL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin Matthews

    Parsing Question Marks in URL

    Hi, i'm trying to change the question marks in the url..

    eg. index.php?page= home

    to something along the lines of

    index.php/pages/home

    I heard their was a way to do this, but can't find anything on the net which
    is what I want to do. Its just so that some search engines that cannot crawl
    sites with question marks in them will be able to.

    Can someone point me in the right direction?

    Cheers

    --

    Kevin


  • Ian P. Christian

    #2
    Re: Parsing Question Marks in URL

    Kevin Matthews wrote:

    [color=blue]
    > Can someone point me in the right direction?[/color]

    Sure.
    modrewrite, the apache module, check on google for more help!

    Kind Regards,

    --
    Ian P. Christian

    Comment

    • Kevin Matthews

      #3
      Re: Parsing Question Marks in URL

      "Ian P. Christian" <pookey@pookey. co.uk> wrote in message
      news:bmuurj$e2s $1@goat.anlx.ne t...[color=blue]
      > Kevin Matthews wrote:
      >
      >[color=green]
      > > Can someone point me in the right direction?[/color]
      >
      > Sure.
      > modrewrite, the apache module, check on google for more help![/color]

      Cheers.. didn't know that existed. however

      RewriteEngine on
      RewriteRule ^sections/(.*) /index.php?page= $1

      That is what I now have in my .htaccess file (local server)

      index.php holds the actual site engine, and the page is where I want to go.

      Now this rewrite rule should allow users to type "sections/Home" or whatever
      to goto that same page right?

      Well what happens when I do this... is the page "index.php?page =Home" is
      loaded however the actual design of the page that is done in the index.php
      is not carried through leaving a plain page with no styling... is it poss to
      get round this?!?!

      Kevin


      Comment

      Working...