Default page pretty Url

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Alx84
New Member
New Member
Posts: 5
Joined: Thu Nov 21, 2013 1:09 pm

Default page pretty Url

Post by Alx84 »

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
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Default page pretty Url

Post by staartmees »

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>
Alx84
New Member
New Member
Posts: 5
Joined: Thu Nov 21, 2013 1:09 pm

Re: Default page pretty Url

Post by Alx84 »

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? ???
Alx84
New Member
New Member
Posts: 5
Joined: Thu Nov 21, 2013 1:09 pm

Re: Default page pretty Url

Post by Alx84 »

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
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Default page pretty Url

Post by staartmees »

Clear the cache of your Firefox.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Default page pretty Url

Post by velden »

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/
Alx84
New Member
New Member
Posts: 5
Joined: Thu Nov 21, 2013 1:09 pm

Re: Default page pretty Url

Post by Alx84 »

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 :)
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Default page pretty Url

Post by velden »

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).
Alx84
New Member
New Member
Posts: 5
Joined: Thu Nov 21, 2013 1:09 pm

Re: Default page pretty Url

Post by Alx84 »

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).
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.
Indeed, the page does not appear at all in Google search. Is there any link that I can read more about such stuff?
Locked

Return to “[locked] Installation, Setup and Upgrade”