Page 1 of 1

issue with web address

Posted: Mon Oct 09, 2006 7:15 pm
by jenstewart
I still can't figure out how to have my website viewed with the address http://www.jenstewartphotography.com/blog right now the only way you can reach is is http://www.jenstewartphotography.com/blog/index.php

do I need to change something in the configuration- paths section in order for it to have the correct address?

thank you!

Posted: Mon Oct 09, 2006 8:18 pm
by mgroeninger
This is often times something your provider will have to configure.

But, if you have a .htacess file in your /blog directory (or if you know your provider is using Apache webserver and will let you configure such things), you can (ok, might be able to) fix it yourself! Just open that file up and add:

Code: Select all

Directory Index index.php
If you don't have a .htacess file (or that change doesn't work) you might still be able to get it to work... But you would have to create a file that redirects to index.php, which kind slows clients down, and looks a little strange.

So if that fix doesn't work, I would ask your provider to let you use index.php as your default page. (But if you want to try a index.html redirect feel free to ask...)

Posted: Mon Oct 09, 2006 9:04 pm
by jenstewart
mgroeninger wrote:This is often times something your provider will have to configure.

But, if you have a .htacess file in your /blog directory (or if you know your provider is using Apache webserver and will let you configure such things), you can (ok, might be able to) fix it yourself! Just open that file up and add:

Code: Select all

Directory Index index.php
If you don't have a .htacess file (or that change doesn't work) you might still be able to get it to work... But you would have to create a file that redirects to index.php, which kind slows clients down, and looks a little strange.

So if that fix doesn't work, I would ask your provider to let you use index.php as your default page. (But if you want to try a index.html redirect feel free to ask...)
I'm not sure if I'm missunderstanding, you or not, but right now I have it so that is goes to blog/index.php and I want to remove that so that ALL that needs to be typed in for the address is www.jenstewartphotography.com/blog

I'm trying to make it as simple for my clients to remember less room for error :D

Posted: Mon Oct 09, 2006 9:33 pm
by mgroeninger
Absolutely.. Everything I said pettains to that...

Basically, you can't make index.php really go away... It has all the code that runs software.

But webservers allow you to set a "default" page, which is served up when someone requests a url... In fact, most webservers allow you to set a list of default pages, just in case one doesn't exist.

So, if you go to www.jenstewartphotography.com/blog the webserver is looking for some page which doesn't exist. If you tell the webserver to use index.php as the default page, it will display your blog without making people type in www.jenstewartphotography.com/blog/index.php

The command

Code: Select all

Directory Index index.php
is the command to tell Apache webserver to use index.php as the default page.

If your service provider uses a different webserver (or won't let you set the Directory Index attribute) you will either have to ask them to change it for you, or create a page which redirects from www.jenstewartphotography.com/blog/ to the index.php page.

Does that make sense?