By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,748 Members | 1,427 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,748 IT Pros & Developers. It's quick & easy.

Parsing Question Marks in URL

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Kevin Matthews wrote:

Can someone point me in the right direction?


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

Kind Regards,

--
Ian P. Christian
Jul 17 '05 #2

P: n/a
"Ian P. Christian" <po****@pookey.co.uk> wrote in message
news:bm**********@goat.anlx.net...
Kevin Matthews wrote:

Can someone point me in the right direction?


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


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
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.