0

hi, im just moving all my website that i created from localhost with xampp, i created links like http://website.com/folder/ and when i was working in localhost it worked, it get the index from that folder, but now i pas it to my website and wont work like that, is only working like http://website.com/folder/index

it still works with the main index though like http://website.com/
but with indexes inside a folder wont work?

im thinking this a .htaccess topic but couldnt find the topic here

Thanks guys

3
Contributors
10
Replies
38
Views
2 Years
Discussion Span
Last Post by centenond
Featured Replies
  • 1

    Check if the default document is set to `index.php`, either in the htaccess or in your hosting control panel. Read More

1

Check if the default document is set to index.php, either in the htaccess or in your hosting control panel.

0

Check if the default document is set to index.php, either in the htaccess or in your hosting control panel.

im using Ipage, any ideas how i do this?

Thanks for reply

0

im using Ipage, any ideas how i do this?

Sorry, I am unfamiliar with ipage. Ask their support (or check their documentation/FAQ/KB).

0

Sorry, I am unfamiliar with ipage. Ask their support (or check their documentation/FAQ/KB).

Thanks, i will do that

0

i found out that is this little code here, that allows me to browse to .php pages without specifying .php extension, heres the code

//this is in .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

if i delete this, i can browse like http://website.com/folder/
but cant browse like this, http://website.com/file(need the .php)
is there anyway i can modified this to browse without the .php(just /file) and widthoout specifying folder/index(just folder/)?

Sorry, I am unfamiliar with ipage. Ask their support (or check their documentation/FAQ/KB).

Edited by centenond

0

Yes. I use the following:

<Files ~ "^[^\.]+$">
ForceType application/x-httpd-php5
</Files>

DirectoryIndex index

The first forces ALL files without an extension to be parsed with PHP. The second add index as the default file to be used when no file is specified.

0

Yes. I use the following:

i tried putting the code in .htaccess, but still i have to specified files with file.php

0

you can try

DirectoryIndex index.php

try adding that to your .htaccess file either in the root or your directory in question and let us know if it work. You can read more about this topic here.

0

I forgot, If you can access your httpd.conf, you can edit it like this as per apache's instructions. Make sure the dir_module is installed though.

<IfModule dir_module>

DirectoryIndex index.html index.shtml index.html.var index.htm index.php3 index.php index.pl index.cgi

</IfModule>
0

you can try
I forgot, If you can access your httpd.conf, you can edit it like this as per apache's instructions. Make sure the dir_module is installed though.

i have this in my .htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

cus i need to acces pages without the .php extension, the problem is that code right there, cus if i delete this code i can browse tru folders without spefying index.. but have to specified .php
i tried, what u suggested (well what i tho u suggested)...

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
DirectoryIndex index.php

this dooesnt work either... well it works only for .php extension(dont have to put it like /file.php just /file) but i still have to specified the indexes of the folders, like folder/index

I need a code that do boths, dont have to specified indexes of a folder and dont have to specified .php extension

very much thanks for replying i hope u understand my english is poor...

Edited by centenond

This question has already been answered. 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.