 |
|
 |
|
Next: domain name opinions please.
|
| Author |
Message |
External

Since: Aug 06, 2003 Posts: 51
|
(Msg. 1) Posted: Tue Sep 30, 2003 2:15 pm
Post subject: Dynamic pages, static URLS in PHP. Archived from groups: alt>www>webmaster (more info?)
|
|
|
Any pointers to handy bits of PHP or whatever for this one would
be much appreciated: Google seems to dig up lots of snake-oil
merchants.
Being lazy, I'd rather re-use code; being *very* lazy I thought
I would ask <ingrate> the experts </ingrate>.
In case you hadn't guessed already, the requirement is for
PHP/MySQL to generate pages of the form wibble.com/products/12/
rather than wibble.com/products?id=12... >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
External

Since: Sep 30, 2003 Posts: 28
|
(Msg. 2) Posted: Tue Sep 30, 2003 2:15 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Mary Pegg" <nospam RemoveThis @widetrouser.freeserve.co.uk> wrote in message
news:oJceb.2898$RU4.33721@newsfep4-glfd.server.ntli.net...
> Any pointers to handy bits of PHP or whatever for this one would
> be much appreciated: Google seems to dig up lots of snake-oil
> merchants.
>
> Being lazy, I'd rather re-use code; being *very* lazy I thought
> I would ask <ingrate> the experts </ingrate>.
>
> In case you hadn't guessed already, the requirement is for
> PHP/MySQL to generate pages of the form wibble.com/products/12/
> rather than wibble.com/products?id=12...
>
It sounds as if you're looking for mod_rewrite
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/mod_rewrite.html" target="_blank">http://httpd.apache.org/docs/mod/mod_rewrite.html</a>
--
Karl Core
At times one remains faithful to a cause only because its opponents do not
cease to be insipid.
Friedrich Nietzsche
eightninethree AT eightninethree.com<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
External

Since: Jun 27, 2003 Posts: 571
|
(Msg. 3) Posted: Tue Sep 30, 2003 2:15 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 30 Sep 2003 11:15:47 +0100, Mary Pegg
<nospam DeleteThis @widetrouser.freeserve.co.uk> wrote:
> Any pointers to handy bits of PHP or whatever for this one would
> be much appreciated: Google seems to dig up lots of snake-oil
> merchants.
>
> Being lazy, I'd rather re-use code; being *very* lazy I thought
> I would ask <ingrate> the experts </ingrate>.
>
> In case you hadn't guessed already, the requirement is for
> PHP/MySQL to generate pages of the form wibble.com/products/12/
> rather than wibble.com/products?id=12...
What exactly do you want to do this for?
Grey
--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- <a style='text-decoration: underline;' href="http://www.greywyvern.com" target="_blank">http://www.greywyvern.com</a> - Orca RingMaker: PHP web ring creation and
management<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
External

Since: Aug 06, 2003 Posts: 51
|
(Msg. 4) Posted: Tue Sep 30, 2003 2:57 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
EightNineThree wrote:
> It sounds as if you're looking for mod_rewrite
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/mod_rewrite.html</font" target="_blank">http://httpd.apache.org/docs/mod/mod_rewrite.html</font</a>>
Thanks. I thought there was some PHP wibble involved...
but throwing mod_rewrite at Google along with the
other search terms has produced:
<a style='text-decoration: underline;' href="http://www.searchtools.com/robots/goodurls.html" target="_blank">http://www.searchtools.com/robots/goodurls.html</a>
which looks like it has some useful links on the
subject.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
External

Since: Jun 27, 2003 Posts: 195
|
(Msg. 5) Posted: Tue Sep 30, 2003 3:25 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Mary Pegg wrote:
> the requirement is for PHP/MySQL to generate pages of the form
> wibble.com/products/12/ rather than wibble.com/products?id=12...
<a style='text-decoration: underline;' href="http://evolt.org/article/Search_Engine_Friendly_URLs_with_PHP_and_Apache/17/15049/index.html" target="_blank">http://evolt.org/article/Search_Engine_Friendly_URLs_with_PHP_and_Apac...17/1504</a>
<a style='text-decoration: underline;' href="http://evolt.org/article/Search_Engine_Friendly_URLs_Part_II/17/17171/index.html" target="_blank">http://evolt.org/article/Search_Engine_Friendly_URLs_Part_II/17/17171/index.html</a>
--
David Dorward <a style='text-decoration: underline;' href="http://dorward.me.uk/" target="_blank">http://dorward.me.uk/</a><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
External

Since: Aug 06, 2003 Posts: 51
|
(Msg. 6) Posted: Tue Sep 30, 2003 5:11 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 06, 2003 Posts: 51
|
(Msg. 7) Posted: Tue Sep 30, 2003 7:38 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
GreyWyvern wrote:
> On Tue, 30 Sep 2003 11:15:47 +0100, Mary Pegg
> <nospam.RemoveThis@widetrouser.freeserve.co.uk> wrote:
>
>> In case you hadn't guessed already, the requirement is for
>> PHP/MySQL to generate pages of the form wibble.com/products/12/
>> rather than wibble.com/products?id=12...
>
> What exactly do you want to do this for?
<answer class="smart">
Money.
</answer>
I appreciate your thinking - I too am fed up of posts asking
what the best explosive is for blowing doors off - but in this
case it's what I have to implement. The "problem" (in case you
haven't guessed already) is climbing to the top of the slippery
Google pole. The client has spent considerable amounts of
time researching this and playing with Google and he tells me
this is effective.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
External

Since: Jun 27, 2003 Posts: 571
|
(Msg. 8) Posted: Tue Sep 30, 2003 7:38 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 30 Sep 2003 16:38:19 +0100, Mary Pegg
<nospam.RemoveThis@widetrouser.freeserve.co.uk> wrote:
> GreyWyvern wrote:
>
>> On Tue, 30 Sep 2003 11:15:47 +0100, Mary Pegg
>> <nospam.RemoveThis@widetrouser.freeserve.co.uk> wrote:
>>
>>> In case you hadn't guessed already, the requirement is for
>>> PHP/MySQL to generate pages of the form wibble.com/products/12/
>>> rather than wibble.com/products?id=12...
>>
>> What exactly do you want to do this for?
>
> <answer class="smart">
> Money.
> </answer>
>
> I appreciate your thinking - I too am fed up of posts asking
> what the best explosive is for blowing doors off - but in this
> case it's what I have to implement. The "problem" (in case you
> haven't guessed already) is climbing to the top of the slippery
> Google pole. The client has spent considerable amounts of
> time researching this and playing with Google and he tells me
> this is effective.
As long as they are linked with honest-to-goodness HTML links, Google has
no problem with URLs containing a query string. The PHP forum on my site
displays every message via different query stringsm with links on the main
page. Google gets to nearly all of them.
For example, this search:
<a style='text-decoration: underline;' href="http://www.google.com/search?q=%22This+is+a+Windows+PHP+glitch%22" target="_blank">http://www.google.com/search?q=%22This+is+a+Windows+PHP+glitch%22</a>
.... easily finds the text in this post:
<a style='text-decoration: underline;' href="http://www.greywyvern.com/forum.php?View&msg=125" target="_blank">http://www.greywyvern.com/forum.php?View&msg=125</a>
In short, you'll be screwing up a lot, for very little effect.
Grey
--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- <a style='text-decoration: underline;' href="http://www.greywyvern.com" target="_blank">http://www.greywyvern.com</a> - Orca RingMaker: PHP web ring creation and
management<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
External

Since: Aug 06, 2003 Posts: 51
|
(Msg. 9) Posted: Tue Sep 30, 2003 8:41 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
GreyWyvern wrote:
> As long as they are linked with honest-to-goodness HTML links, Google has
> no problem with URLs containing a query string. The PHP forum on my site
> displays every message via different query stringsm with links on the main
> page. Google gets to nearly all of them.
It is a question of ranking. My own take on this is that it's the client's
job to provide content, my job to organise it and present it, and Google's
job to find it and index it, and "clever tricks" with Google are of limited
use.
*However*, I am led to believe that given sites selling widgets and
blodgets in brown and blue, when Jo User searches for a brown widget,
wibble.com/widgets/brown/1.htm ranks higher than
wobble.com/products.php?id=4
> In short, you'll be screwing up a lot, for very little effect.
What's being screwed up?<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
External

Since: Jun 29, 2003 Posts: 111
|
(Msg. 10) Posted: Tue Sep 30, 2003 8:57 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
GreyWyvern wrote:
> As long as they are linked with honest-to-goodness HTML links, Google
> has no problem with URLs containing a query string. The PHP forum on my
> site displays every message via different query stringsm with links on
> the main page. Google gets to nearly all of them.
You are both kind of right. Google will spider dynamically created pages,
but only up to a point.
<a style='text-decoration: underline;' href="http://www.example.tld/index.php?id=1&page=2" target="_blank">http://www.example.tld/index.php?id=1&page=2</a> - will get spidered with no
problems, but:
<a style='text-decoration: underline;' href="http://www.example.tld/index.php?id=1&page=2&name=fred" target="_blank">http://www.example.tld/index.php?id=1&page=2&name=fred</a>
might have more difficulty. Google employs some method of deciding when
pages are just being randomly generated and will generally start to ignore
some pages when they contain more than 2 variables in the URL.
Of course, the OP only has 1 variable per URL in her examples, but even so
it might help for customers to be able to remember the URLs. I know that
certainly since I changed from using URLs like:
<a style='text-decoration: underline;' href="http://www.webpageworkshop.co.uk/index.php?category=main&file=privacy.xml" target="_blank">http://www.webpageworkshop.co.uk/index.php?category=main&file=privacy.xml</a>
to using urls like:
<a style='text-decoration: underline;' href="http://www.webpageworkshop.co.uk/main/privacy" target="_blank">http://www.webpageworkshop.co.uk/main/privacy</a>
the number of visitors has increased massively. Of course, YMMV as it
invariably will.
--
Dylan Parry
<a style='text-decoration: underline;' href="http://www.webpageworkshop.co.uk" target="_blank">http://www.webpageworkshop.co.uk</a> - FREE Web tutorials and references
Now playing: Bizet - L'Arlésienne Suite No. 2<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
External

Since: Sep 25, 2003 Posts: 106
|
(Msg. 11) Posted: Wed Oct 01, 2003 12:48 pm
Post subject: Re: Dynamic pages, static URLS in PHP. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Mary Pegg wrote:
> GreyWyvern wrote:
>
>
>>As long as they are linked with honest-to-goodness HTML links, Google has
>>no problem with URLs containing a query string. The PHP forum on my site
>>displays every message via different query stringsm with links on the main
>>page. Google gets to nearly all of them.
>
>
> It is a question of ranking. My own take on this is that it's the client's
> job to provide content, my job to organise it and present it, and Google's
> job to find it and index it, and "clever tricks" with Google are of limited
> use.
>
> *However*, I am led to believe that given sites selling widgets and
> blodgets in brown and blue, when Jo User searches for a brown widget,
> wibble.com/widgets/brown/1.htm ranks higher than
> wobble.com/products.php?id=4
What about:
wobble.com/products.php?id=4&desc=widgets&colour=brown
It doesn't mean you have to use the extra variables.
Or alternatively:
wobble.com/products.php?location=/widgets/brown/1.htm
And the $location var can be broken into the necessary information.
>>In short, you'll be screwing up a lot, for very little effect.
>
> What's being screwed up?
1. Your directory structure because you're making up structures that
don't exist.
2. Your PHP.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Dynamic pages, static URLS in PHP. |
|
| Back to top |
|
 |  |
| Related Topics: | dynamic to static url using mod_rewrite in.htaccess - I am trying to use a module for an ecommerce site that uses the mod_rewrite in .htaccess. The .htaccess is working when I use it for an "error 404", but not when I uncomment the rest of the file to change the dynamic to static urls. It gives me...
Dynamic menu help - Hi , Trying to get a menu working for sometime now have wasted money on stupid software etc.Now have been trying out a freebee from www.dynamicdrive.com, but have one or two question. It's properly better if I was to show you it so have uploaded it to..
How to create this dynamic menu - Please see the main menu at top of http://www.everyone.net/ How do I write such an animated drop-down menu (or something similar/simpler)? I do not know JS. Is there a software that I can use? I have searched around but could not find any. Thanks
Speaking web pages - I'd never heard of this before - but as making pages accessible to all is important I wondered what others thought. http://www.speakingwebpage.com/index2.htm Put the speakers on. http://www.fresh-fish-online.com I found it on this site - -- Just adde...
"hits" and "Pages" - My stats tell me that I has many "hit"s but not so many "pages" What is the difference? Dx -- Harry.mythpig@ntlworld.com. To reply, throw out the bacon. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|