Hello there,
After uploading my website I noticed the following problem:
The default page is for example: (website name is an example) ;http://www.my-page.com/index.php . The provider looks automatically as an url extension something like /main.html , index.htm, index.html etc but no index.php which means that if i type ;http://www.my-page.com then since the domain does not find anything from the above extensions connects me to ;http://www.my-page.com/defaultsite with some error notifications etc.
I tried the procedure descriped here : http://docs.cmsmadesimple.org/configuration/pretty-url
I got the desired extension (.html) in all pages but not in the default one and the domain still connects me to this "/defaultsite"
Does anyone has an idea?
Thank you
Default page pretty Url
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: Default page pretty Url
Make an index.html with a meta redirect
Code: Select all
<__html>
<head>
<META http-equiv="refresh" content="0;URL=http://www.my-page.com/index.php">
</head>
</__html>
Re: Default page pretty Url
staartmees wrote:Make an index.html with a meta redirect
Code: Select all
<__html> <head> <META http-equiv="refresh" content="0;URL=http://www.my-page.com/index.php"> </head> </__html>
Thank you for the very fast reply. I did try it but it still likes to send me to /defaultsite. The index.html opens the page without a problem when I double click it, but I did not get a connection between them.
do I miss something?

Re: Default page pretty Url
I just noticed that It does make a connection with the /index.php with Chrome, Internet Explorer but not with firefox. does anyone know why is that happening?
Many thanks
Many thanks
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: Default page pretty Url
Clear the cache of your Firefox.
Re: Default page pretty Url
Think about it: host serves php but does not look for index.php...
How do they think you should get a php site to work (without the redirect workaround...)?
Make sure you don't have one of the other DirectoryIndex files in your root directory. If not ask your host how to make it work or read http://www.htaccess-guide.com/directoryindex-uses/
How do they think you should get a php site to work (without the redirect workaround...)?
Make sure you don't have one of the other DirectoryIndex files in your root directory. If not ask your host how to make it work or read http://www.htaccess-guide.com/directoryindex-uses/
Re: Default page pretty Url
I it tried last night from home with firefox and it worked!
So it might be what staartmees proposed about cache. It is working now from my office, so i would say problem solved!
Thank you very much guys
So it might be what staartmees proposed about cache. It is working now from my office, so i would say problem solved!
Thank you very much guys

Re: Default page pretty Url
Personally I would call a redirect not 'problem solved'. It's more like a work around.
For example: how would Google display the homepage in it's search results?
It should just work like on any other webserver. (my opinion).
For example: how would Google display the homepage in it's search results?
It should just work like on any other webserver. (my opinion).
Re: Default page pretty Url
I have to admit that I did not know about it. Since web design is not my world and I am now trying to learn the basics.velden wrote:Personally I would call a redirect not 'problem solved'. It's more like a work around.
For example: how would Google display the homepage in it's search results?
It should just work like on any other webserver. (my opinion).
Indeed, the page does not appear at all in Google search. Is there any link that I can read more about such stuff?