Page 1 of 2

Using the ? in url's

Posted: Thu 20. May 2004, 14:28
by Pieter
I stumbled over something awkward.
When I write an url like http://www.bla.com/index.php?bla
Alls goes well
When I just write index.php?bla
It translates to http://www.bla.com/bla.shtml


Why is this? The relative url would be much easier to use, so I hope this is possible,

Posted: Thu 20. May 2004, 14:43
by Pappnase
hello

this ist the rewrite function! when you create site structures give them an alias so the url will rewrite from index.php?about_us to about_us.shtml.

Posted: Thu 20. May 2004, 14:56
by Pieter
Pappnase wrote:create site structures give them an alias.

The items in the site structure have an alias :?

Posted: Thu 20. May 2004, 14:58
by pSouper
the Bla is the alias.
if you preffer to have index.php?bla the nyou must turn rewrite off in include/inc_conf/conf.inc.php

Posted: Thu 20. May 2004, 15:01
by Pappnase
then it's ok!

cos this was made that google would have no problems to index your site!

if you don't wann have it rename the .htaccess to _.htaccess and in the conf.inc.php edit the following line.

from

Code: Select all

$phpwcms["rewrite_url"]       = 1;        //whether URL should be rewritable
to

Code: Select all

$phpwcms["rewrite_url"]       = 0;        //whether URL should be rewritable

Posted: Thu 20. May 2004, 15:13
by Pieter
It's not that I mind the rewrite, but where are the *.shtml files ??

Posted: Thu 20. May 2004, 15:16
by Oliver Georgi
It's a fake ;-) - just for rewriting.

Absolute no *.shtml file exists.

Oliver

Posted: Thu 20. May 2004, 15:19
by Pieter
Oliver Georgi wrote:It's a fake ;-) - just for rewriting.
What's the rewrite used for then, if it makes the url's rewrite to non-existen files ??

Posted: Thu 20. May 2004, 15:22
by Oliver Georgi
phpwcms: index.php?test -> test.shtml or index.php?id=0,0,0,0,0,0 -> 0.0.0.0.0.0.shtml

Apache test.shtml -> index.php?test and 0.0.0.0.0.0.shtml -> index.php?id


Oliver

Posted: Thu 20. May 2004, 15:22
by frold
well for search engines... search in this forum and you will find tons of posts...!!

Posted: Thu 20. May 2004, 15:33
by Pieter
Oliver Georgi wrote:phpwcms: index.php?test -> test.shtml or index.php?id=0,0,0,0,0,0 -> 0.0.0.0.0.0.shtml

Apache test.shtml -> index.php?test and 0.0.0.0.0.0.shtml -> index.php?id
Sorry, I don't understand what you mean :oops:

Posted: Thu 20. May 2004, 15:36
by frold
Pieter wrote:
Oliver Georgi wrote:phpwcms: index.php?test -> test.shtml or index.php?id=0,0,0,0,0,0 -> 0.0.0.0.0.0.shtml

Apache test.shtml -> index.php?test and 0.0.0.0.0.0.shtml -> index.php?id
Sorry, I don't understand what you mean :oops:
well it make fakes "links" that is more easy to reminder, and that search engines like - so you site will be indexed on google etc.. that´s the point

Read some of the post in the forum - for more details...

Posted: Thu 20. May 2004, 15:52
by Pieter
frold wrote:well it make fakes "links" that is more easy to reminder, and that search engines like - so you site will be indexed on google etc.. that´s the point

Read some of the post in the forum - for more details...
But why is that nice, if the links refer to non-existing pages. No one can use the site anymore ?!

Posted: Thu 20. May 2004, 15:54
by Pappnase
hello

why should nobody use the site anymore?? you create the content in the admin area. and any visitor will see your created pages with the difference that it's shown as shtml and not as php!

Posted: Thu 20. May 2004, 15:59
by tyr
The links DO refer to existing pages. The system presents a more user-friendly or search engine-friendly URL on the frontend, but the phpWCMS translates the nicer-looking URL internally so you get the correct content.

When teh seach engines index your site they equate the content with the re-written URL. phpWCMS knows what the browser is looking for and provides the correct contenet page without the requester knowing any different.

You can use a file extension other than .shtml if you wish, as has been mentioned elsewhere in the forum.