Jump to content
arif

index shows 404

Recommended Posts

Hello,

after installing the latest processwire installation in a subfolder /k/, the index does always show the 404 page, not the home page. I can access the home page however, by going to domain.com/k/.

Why doesn't domain.com point me to the home page? It does point me to the process wire 404 page.

On the same server i have another processwire installation running with exactly the same setup, it works just fine. I have compared the htaccess files several times and they are set up the same way. I don't know what else to do and would be grateful for a tip.

thank you!

Arif

 

 

Share this post


Link to post
Share on other sites

What's in the root folder? Another PW installation? Or someting else? What are the index.php/.html and .htaccess of root?

If you installed PW into domain.tld, then of course that PW homepage will be shown in domain.tld/subfolder/, not domain.tld/

Share this post


Link to post
Share on other sites

Hi Dragan,

thank you for responding. In the public_html (root) folder there is only a .htaccess, no index.php or .html. There are also three subfolders: jn, acg and k.

JN contains a processwire installation that shows the index.php just fine.
K contains the problematic, new installation that always shows 404 (at domain.com)

the htaccess in the root contains the following lines.

RewriteCond %{HTTP_HOST}    ^domain.com$
RewriteCond %{REQUEST_URI}  !^/k//
RewriteRule (.*)    		/k//$1 [last]
RewriteCond %{HTTP_HOST}    ^www.domain.com$
RewriteCond %{REQUEST_URI}  !^/k//
RewriteRule (.*)    		/k//$1 [last]
RewriteCond %{HTTP_HOST}    ^acg.com$
RewriteCond %{REQUEST_URI}  !^/acg//
RewriteRule (.*)    		/acg//$1 [last]
RewriteCond %{HTTP_HOST}    ^www.acg.com$
RewriteCond %{REQUEST_URI}  !^/acg//
RewriteRule (.*)    		/acg//$1 [last]
RewriteCond %{HTTP_HOST}    ^www..acg.com$
RewriteCond %{REQUEST_URI}  !^/acg//
RewriteRule (.*)    		/acg//$1 [last]
RewriteCond %{HTTP_HOST}    ^ac.group$
RewriteCond %{REQUEST_URI}  !^/acg//
RewriteRule (.*)    		/acg//$1 [last]
RewriteCond %{HTTP_HOST}    ^www.ac.group$
RewriteCond %{REQUEST_URI}  !^/acg//
RewriteRule (.*)    		/acg//$1 [last]
RewriteCond %{HTTP_HOST}    ^jn.com$
RewriteCond %{REQUEST_URI}  !^/jn//
RewriteRule (.*)    		/jn//$1 [last]
RewriteCond %{HTTP_HOST}    ^www.jn.com$
RewriteCond %{REQUEST_URI}  !^/jn//
RewriteRule (.*)    		/jn//$1 [last]
RewriteCond %{HTTP_HOST}    ^www..jn.com$
RewriteCond %{REQUEST_URI}  !^/jn//
RewriteRule (.*)    		/jn//$1 [last]

 

 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...