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!
issue with web address
-
jenstewart
- Regular
- Posts: 49
- Joined: Mon Oct 02, 2006 7:50 pm
- Location: California
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
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:
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...)
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.phpSo 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...)
Matthew (Feeling generous?)
-
jenstewart
- Regular
- Posts: 49
- Joined: Mon Oct 02, 2006 7:50 pm
- Location: California
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/blogmgroeninger 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:
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.Code: Select all
Directory Index index.php
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 trying to make it as simple for my clients to remember less room for error
-
mgroeninger
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
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 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?
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.phpIf 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?
Matthew (Feeling generous?)