Google and file endings [Rewrite Function]

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
rookie
Posts: 109
Joined: Mon 31. May 2004, 22:01
Location: Hamburg, Germany

Google and file endings [Rewrite Function]

Post 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:
User avatar
Paradroid
Posts: 176
Joined: Fri 19. Mar 2004, 13:14
Location: Wuppertal
Contact:

Post 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
ParaDroid

knquadrat edv + marketing
http://www.knquadrat.de

phpWCMS Dokumentation | Deutsch | English
rookie
Posts: 109
Joined: Mon 31. May 2004, 22:01
Location: Hamburg, Germany

Post 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?
User avatar
Paradroid
Posts: 176
Joined: Fri 19. Mar 2004, 13:14
Location: Wuppertal
Contact:

Post 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
ParaDroid

knquadrat edv + marketing
http://www.knquadrat.de

phpWCMS Dokumentation | Deutsch | English
Pappnase

Post 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:
User avatar
Paradroid
Posts: 176
Joined: Fri 19. Mar 2004, 13:14
Location: Wuppertal
Contact:

Post by Paradroid »

Hi Pappnase,

you're so cute :wink:

cu

Achim
ParaDroid

knquadrat edv + marketing
http://www.knquadrat.de

phpWCMS Dokumentation | Deutsch | English
Pappnase

Post 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.
Post Reply