Page 1 of 1

Google and file endings [Rewrite Function]

Posted: Fri 18. Jun 2004, 15:48
by rookie
Hello,

what are the advantages of rewriting urls?

I have read that these days google does not care about site endings.

According to googleguy (a google employee) it is irrelevant whether I index my pages with something.php or something.shtml

What are your opinions on this matter? What do you prefer/suggest and why?

I am still confused as to what the pros and contras are for using either of these endings for my website.


What I noticed is that if I use the rewrite function AFTER having transferred my phpwcms from a subdir (http://www.mysite.com/wcms/) to my main dir (http://www.mysite.com) the .shtml pages don't work anymore. I did change the info in the config file but when I have the rewrite function set to 1, I still get the 404 error message. :oops:

Posted: Fri 18. Jun 2004, 15:55
by Paradroid
Hi,

you are right, that something.html and something.php are equivalent and both aceepted by google. But phpWCMS (and all other CMS) use links like /index.php?something . And these are not good because google and other search engines don't like parameters in URL so anything behind the question mark is ignored. Therefore you can use the rerite mod which transforms index.php?something to something.shtml.

If you want your cms site to be spidered correctly, I would strongly suggest to use the rewrite mod.

Did you change your settings in .htaccess after moving the site ?

cu

Achim

Posted: Fri 18. Jun 2004, 16:04
by rookie
Uhm, I don't know where a .htaccess file is located? :oops: :oops: :oops:


I changed the info in the config file and in the config.inc.

Is there more I need to change?

Posted: Fri 18. Jun 2004, 16:18
by Paradroid
Yes, there is !

You have to rename the _.htaccess file to .htaccess (located in the root of phpWCMS) in order to get the rewrite mod to work. But you may have to change some values in your .htaccess, but it ist well documented.

look here : http://www.phpwcms.de/forum/viewtopic.p ... t=htaccess

or here : http://www.phpwcms.de/forum/viewtopic.p ... t=htaccess

search and you will find ....

cu

Achim

Posted: Fri 18. Jun 2004, 18:28
by Pappnase
hello

rookie can't see the htaccess cos the rewrite is enable. i help her to setup phpwcms so i also enable the rewrite. :wink:

Posted: Fri 18. Jun 2004, 18:42
by Paradroid
Hi Pappnase,

you're so cute :wink:

cu

Achim

Posted: Fri 18. Jun 2004, 18:44
by Pappnase
hello para

thank's. :wink:

there was also the problem that rookie moved the site from a subdir to the root but there was not htacces. that causes the error too! now all is fixed.