mod rewrite to change www.foo/index.php?pid=5 to www.foo/5

This is a discussion on mod rewrite to change www.foo/index.php?pid=5 to www.foo/5 within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, i like to make my dynamic webpages google-capable. I use a dynamic page style like www.foo/index....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-29-2005
Wilhelm Kutting
 
Posts: n/a
Default mod rewrite to change www.foo/index.php?pid=5 to www.foo/5

Hi,

i like to make my dynamic webpages google-capable.
I use a dynamic page style like www.foo/index.php?pid=5
I only got the page index.php with dynamicly includes files.

So Google doesn't seem to index the files i like to use apache to rwrite
this.

How can i accomplish that?
  #2 (permalink)  
Old 01-29-2005
Alvaro G. Vicario
 
Posts: n/a
Default Re: mod rewrite to change www.foo/index.php?pid=5 to www.foo/5

*** Wilhelm Kutting escribió/wrote (Sat, 29 Jan 2005 15:19:51 +0100):
> i like to make my dynamic webpages google-capable.
> I use a dynamic page style like www.foo/index.php?pid=5
> I only got the page index.php with dynamicly includes files.


RewriteRule ([0-9]+) /index.php?pid=$1

Not tested, may contain typos.

> So Google doesn't seem to index the files i like to use apache to rwrite
> this.


It's funny that Google does not index sites with dynamic-looking URLS and
they still appear in searches... Actually, I would have dropped Google as
my preferred search engine long ago if it applied such a weird filter and I
couldn't find several million sites. My suggestions:

1) Make sure your site is not indexed. I've heard this complaint many times
and when I searched the site it was always there. Of course, you can't
expect to be in page #1 if there're 100,000 sites with the same keywords.

2) Make sure you aren't preveting Google's access using JavaScript or Flash
as the only navigation system.

Google can't tell whether a site is dynamic or not. Server-side
technologies like PHP create regular HTML and are transparent for users.


--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Manda tus dudas al grupo, no a mi buzón
-+ Send your questions to the group, not to my mailbox
--
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:34 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0