4
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by phoenix_2000
0

Make a directory named index and place an index.php there.
Probably the configuration of your server needs an index.php in the root, you can place an header redirect in this file:

<?php header("Location: /index/",TRUE,301); ?>

So your structure will be:
/index.php
/index/
/index/index.php

bye

0

Make a directory named index and place an index.php there.
Probably the configuration of your server needs an index.php in the root, you can place an header redirect in this file:

<?php header("Location: /index/",TRUE,301); ?>

So your structure will be:
/index.php
/index/
/index/index.php

bye

Thanks for the reply, so i do that for all pages?

0

Yes. If you have contact.php make /contact/index.php, and so on, this will give you the ability to write http://www.your_server.tld/contact/

And for a while you can set an header redirect on the original files, just like in root index.php, so the spiders will save the new position.

1

If your webhost does not support .htaccess and the web server is Apache...move to a better host.
If your webhost does not support .htaccess and the web server is not Apache, look to see what type of url rewriting it supports. If you still can't...move to a better host.

.htaccess or its equivalent is pretty much an industry standard these days.

Creating tons of index.php files in tons of nested directories, not only introduces a maintenance nightmare, but also introduces a security risk when it comes to fixing bugs they will need to be pushed through any file with duplicated code. This goes back to creating a maintenance nightmare.

0

As far as i know, some servers trigger .htaccess when you ask them, instead of automatically, you could try asking them, or... move to another host :)
(i'm sorry, were there supposed to be quotation marks there?)

anyway, if all else fails, you could just make 1 page with a big frame, and have all links change the content of the frame and what the user sees on the top remains the same.

Frames are hardly an ideal solution, but the same goes for not having .htaccess support

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.