Is mod_rewrite installed in the server?
mod_rewrite
Yes.
how i can activated the mod_rewrite?!?!?! i have to upload the .htacces file?... i am a bit confused...
does google index correctly the pages hosted by frihost or only index the principal page?
does google index correctly the pages hosted by frihost or only index the principal page?
Firstly, if you don't even know what's mod_rewrite, don't use it. It'll just cause you to get 500 internal errors, which you hate.
| eugenioclrc wrote: |
| how i can activated the mod_rewrite?!?!?! i have to upload the .htacces file?... i am a bit confused...
does google index correctly the pages hosted by frihost or only index the principal page? |
Most websites don't need a mod_rewrite. It's not easy to make if you don't know anything about it. And yes, it should be used in .htacess files. Normally google perfectly indexes your site without a mod_rewrite.
mod_rewrite is really useful, if you learn how to use it. It allows you to get rid of query strings (eg. ?page=test) and instead have a virtual directory tree.
My DanSoft Australia website has URL's like http://www.dansoftaustralia.net/index.dsa, http://www.dansoftaustralia.net/products.dsa, http://www.dansoftaustralia.net/about.dsa, etc. but all these pages are served up using a single index.php file (which implements a custom templating system)
Anyway, to enable it, you need to add this to the .htaccess file:
See Here for more information on mod_rewrite, including how to use it.
My DanSoft Australia website has URL's like http://www.dansoftaustralia.net/index.dsa, http://www.dansoftaustralia.net/products.dsa, http://www.dansoftaustralia.net/about.dsa, etc. but all these pages are served up using a single index.php file (which implements a custom templating system)
Anyway, to enable it, you need to add this to the .htaccess file:
| Code: |
| RewriteEngine on |
See Here for more information on mod_rewrite, including how to use it.
| Quote: |
| Firstly, if you don't even know what's mod_rewrite, don't use it. It'll just cause you to get 500 internal errors, which you hate. |
Sometime it can be used without knowing a thing about its internal working. Like I am using joomla, and it just needs one minute to set it up to use mod rewrite.
And though googl;e indexes with ? in url, why take chances? Hey even frihost uses it(can u see a url in forum with vt-xxxx in it?)
| shabda wrote: | ||
Sometime it can be used without knowing a thing about its internal working. Like I am using joomla, and it just needs one minute to set it up to use mod rewrite. And though googl;e indexes with ? in url, why take chances? Hey even frihost uses it(can u see a url in forum with vt-xxxx in it?) |
Google doesn't like the parameters after a url, certainly not session id's. It does index them, but not as good as normal php/html pages.
| Bondings wrote: | ||||
Google doesn't like the parameters after a url, certainly not session id's. It does index them, but not as good as normal php/html pages. |
Just a question, does Google like weird extensions? My website uses .dsa extensions (something I made up) which works in conjunction with mod_rewrite. For example, the file /products.dsa would actually go to /index.php/products
| Quote: |
| Just a question, does Google like weird extensions? |
Yes. Seen many sites with weird extensions indexed by goog. But why take chances?
| daniel15 wrote: |
| Just a question, does Google like weird extensions? My website uses .dsa extensions (something I made up) which works in conjunction with mod_rewrite. For example, the file /products.dsa would actually go to /index.php/products |
Google has a set of file names which it is able to index officially. However, I already heared from a lot of people that it indexes every file extension and only looks at the content of the page(html, pdf, ...).
But the best way to check this is just to check wether google indexed those pages or not and if they appear in the google index.
Google index my website which has an extension of .bondings
.
So...
Oh btw, daniel15, I would like to know that how did you make it show index.dsa instead of index.php. I can't seem to get that
So...
Oh btw, daniel15, I would like to know that how did you make it show index.dsa instead of index.php. I can't seem to get that
Well, /index.dsa actually goes to /index.php/index
The original URL's were like /index.php/index, /index.php/products, etc. The PHP scripts use $_SERVER['PATH_INFO'] to get the path info (/index, /products, etc. Basically, the thing after /index.php) and uses that to get the correct page.
My .htaccess is:
(.+) means "one or more characters" and $1 is the string obtained in the brackets. So, the rule means "if the URI is anything followed by .dsa, get the portion before the .dsa and go to /index.php/ followed by the string.
Hopefully, you understand that. It was a bit hard for me to explain.
The original URL's were like /index.php/index, /index.php/products, etc. The PHP scripts use $_SERVER['PATH_INFO'] to get the path info (/index, /products, etc. Basically, the thing after /index.php) and uses that to get the correct page.
My .htaccess is:
| Code: |
|
RewriteEngine on RewriteRule ^(.+).dsa$ index.php/$1 [L] |
(.+) means "one or more characters" and $1 is the string obtained in the brackets. So, the rule means "if the URI is anything followed by .dsa, get the portion before the .dsa and go to /index.php/ followed by the string.
Hopefully, you understand that. It was a bit hard for me to explain.
