Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello, maybe a stupid question:
I've used nested pages at the index.php to generate a site with menue. It works fine, but on the index.php no contents is loaded as there arent any as it is the root page. I wanted to see the content of the first cloned page of index.php on index.php so I wrote:

Code: Select all
<cms:if k_is_list>
<cms:pages masterpage='index.php' page_name='my_name'>
    <cms:embed 'inc_slider.html' />       
    <cms:embed 'inc_content_main.html' />
</cms:pages>
</cms:if>


so far so good problem solved, but after thinking i recognised that i generated dublicate content at index.php and the /my_name page.

now i made a redirect at htacacces:
Redirect 301 http://www.domain.com/my_name/ http://www.domain.com/

which is working, but im wondering if there is a more elegant way to do it?

thank you!
Hi,

You can make the list-view itself redirect to whatever page you wish -
Code: Select all
<cms:if k_is_list>
    <cms:pages masterpage='index.php' page_name='my_name'>
        <cms:redirect k_page_link />
    </cms:pages>
</cms:if>

Does this help?
Yes, thank you!
3 posts Page 1 of 1
cron