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:
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!
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!