Problem with htaccess ????? Please help.

Status
Not open for further replies.

mylifestyle

New Member
Messages
117
Reaction score
0
Points
0
Hi.

I am hoping that there is a very simple solution to a problem i'm having at the moment.

If I upload a new folder ie :-

/newfolder/

and in it there's pages including index.php

When I try and access new folder ie :-

mysite.com/newfolder

I get an error message..........BUT when I add /index.php (mysite.com/newfolder/index.php)
it opens ok !

Could this be a .htaccess prob ????

Pls advise.
Thank you
M
:smile:
 

zapzack

New Member
Messages
606
Reaction score
19
Points
0
Did you edit your .htaccess file?

If no, try adding
Code:
DirectoryIndex index.html index.php
to your .htaccess file.
 

mylifestyle

New Member
Messages
117
Reaction score
0
Points
0
Did you edit your .htaccess file?

If no, try adding
Code:
DirectoryIndex index.html index.php
to your .htaccess file.

Hi.....Thx sooo much 4 yr quick reply.

Errrr probably. I've been trying out a few new scripts and I have a feeling that it could have been changed cos
it's got rewrite engine on and then all sorts of stuff after.

If I were to delete this 'rewrite engine' thingy do u think it would solve the prob ???

Ta
M

---------- Post added at 06:33 AM ---------- Previous post was at 06:32 AM ----------

This is wot my .htaccess file look like at the moment :-

<FilesMatch "\.(inc\.php|inc|tpl|sql)$">
Order Deny,Allow
Deny from All
</FilesMatch>

RewriteEngine on

RewriteRule ^([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+)([\/]*)$ index.php?a=$1&rw[]=$2&rw[]=$3
RewriteRule ^([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+)([\/]*)$ index.php?a=$1&rw[]=$2
RewriteRule ^([0-9a-zA-Z_-]+)([\/]*)$ index.php?a=$1 [QSA]

---------- Post added at 06:47 AM ---------- Previous post was at 06:33 AM ----------

Hi.

I've just renamed my 'original' htaccess file and upload new which included your code and now
all works perfectly ! Thank u VERY much indeed... something so simple eh ?

THANK U
:wink:
 
Status
Not open for further replies.
Top