Subdomain not finiding index file

Status
Not open for further replies.

wjh2303

New Member
Messages
139
Reaction score
0
Points
0
Last edited:

vishal

-::-X10 Guru-::-
Community Support
Messages
5,255
Reaction score
192
Points
63
I checked your link . Can you check your .htacess file in your home directory.That might be the problem

I read your last thread.
Try creating a .htaccess file in the subdomain folder.This will work.One of my friend has the same problem and this solved the issue
 
Last edited:

wjh2303

New Member
Messages
139
Reaction score
0
Points
0
how should the htaccess file in the home directory read? In the subdomain folder the htaccess already contains
Code:
DirectoryIndex index.php
but doesnt appear to work
 

vishal

-::-X10 Guru-::-
Community Support
Messages
5,255
Reaction score
192
Points
63
how should the htaccess file in the home directory read? In the subdomain folder the htaccess already contains
Code:
DirectoryIndex index.php
but doesnt appear to work

What you have mentioned is correct .And i should have solved the problem.
For more about .htaccess go here
 

wjh2303

New Member
Messages
139
Reaction score
0
Points
0
not sure if it helps, but the error log says:
"File does not exist: /home/wjh31/public_html/epsomandewellrevisited/home"
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Please post the entire contents of .htaccess from both public_html and the subdomain folder.
 

wjh2303

New Member
Messages
139
Reaction score
0
Points
0
in public_html:
DirectoryIndex index.php

RewriteEngine on

RewriteRule ^location/([^/\.]+)/?$ location.php?location=$1 [L]
RewriteRule ^locmini/([^/\.]+)/?$ locmini.php?location=$1 [L]
RewriteRule ^category/([^/\.]+)/?$ category.php?tag=$1 [L]
RewriteRule ^bylocation/([^/\.]+)/?$ bylocation.php?tag=$1 [L]
RewriteRule ^viewtl/([^/\.]+)/?$ viewtl.php?id=$1 [L]
RewriteRule ^list/([^/\.]+)/?$ list.php?sortby=$1 [L]
RewriteRule ^fullscreen/([^/\.]+)/?$ fullscreen.php?location=$1 [L]
RewriteRule ^([^/\.]+)/?$ $1.php

in subdomain folder:
DirectoryIndex index.php

thanks
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Try this:

Code:
# RewriteRule ^([^/\.]+)/?$ $1.php

ie comment out that last rule and see if that fixes it.
 

wjh2303

New Member
Messages
139
Reaction score
0
Points
0
yes, that fixed it thanks, i guess it was trying to send it to ".php" instead of recognising the need for the index. To maintain the rewrite rule in the root, i added "RewriteEngine off" to the .htaccess in the subdomain, issue is now resolved, yay and thanks.
 
Status
Not open for further replies.
Top