We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Can't see entry page in multiple site mode (EE5)

How Do I?

Goha's avatar
Goha
6 posts
6 years ago
Goha's avatar Goha

I have an English language version of the main site installed in multiple site mode (there is no problem with it inside admin panel: I can switch sites, create channels/entries, manage templates for both sites etc.) — en.kiosov.pro. The index page is working well. But I can’t see channel page and entries page at all. For example, I have a channel called Cases with one entry inside. I have a template group called cases too with 2 templates inside:

index (http:// for <a> was added here by forum markdown parser)

{embed='index/header'}
{exp:channel:entries channel='cases' limit='25' paginate='bottom' dynamic='no'}
    <div class="blog-entry">
        <h2><a href="http://{url_title_path=cases/case}">{title}</a></h2>
        {entry_date format='%n/%j/%Y'}
        {case_teaser}
        {if has_categories}
            <b>in</b>: {categories backspace='2'}<a href="http://{path=%27cases%27}" title="View more in {category_name}">{category_name}</a>, {/categories}
        {/if}
        by: {author}
    </div>
    {if no_results}
        {redirect='404'}
    {/if}
{/exp:channel:entries}
{embed="index/footer"}

and case (http:// and %27 for <a> was added here by forum markdown parser)

{embed='index/header'}
{exp:channel:entries channel='cases' limit='1' require_entry='yes'}
    <h1>{title}</h1>
    {entry_date format='%n/%j/%Y'}
    {case_teaser}
    {case_post}
    {if has_categories}
        <b>in</b>: {categories backspace='2'}<a href="http://{path=%27cases%27}" title="View more in {category_name}">{category_name}</a>, {/categories}
    {/if}
    by: {author}
    {if no_results}
        {redirect='404'}
    {/if}
{/exp:channel:entries}
{embed="index/footer"}

I have the entries listing code on index page which is works well (you can see it on en.kiosov.pro/#cases page)

{exp:channel:entries channel='cases' limit='5' paginate='bottom' dynamic='no'}
<h3><a href="http://{url_title_path=cases/case}">{title}</a></h3>
<h4>{case_teaser}</h4>
{/exp:channel:entries}

It builds the correct link to the entry but I get “Not Found” when I click it or just type the https://en.kiosov.pro/cases/case/first-test-case-post link for example in the browser URL field. Can’t realize what I missed for en. version because the main site (kiosov.pro — just old design and structure there) works without that problem and I building en. version with the same way (but other channels structure).

Thank you!

P.S. Thanks for forum access, Derek!

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
6 years ago
Kevin Cupp's avatar Kevin Cupp

Sorry for your trouble, Goha. It looks like you need to set your web server to rewrite URLs to pass them through index.php. For instance, this works:

https://en.kiosov.pro/index.php/cases/case/first-test-case-post

       
Goha's avatar
Goha
6 posts
6 years ago
Goha's avatar Goha

Thanks, Kevin! Just copied .htaccess from the main site and it works. EE guys really have to add this stuff in Multiple site setup docs.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.