Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter
Powered by Vanilla. Made with Bootstrap.
Theme built by Kasper Kronborg Isager
301 redirect for multiple page names
  • hey there.
    i have a re-occuring problam with the system.
    there are 2-3 different url's for the home page. the most common one is "sitename.com?page=1" when you click the home button in the menu.
    i want it to go to just the domain name.com
    i have tried doing a 301 redirect using htaccess file but got a 310 error.
    is there a way of doing it with php?
    thanks
  • sadly there is now way only when you set the link manually.

    for example you could do in the createMenu function do:
     
    foreach($feindura->createMenu as $item) {
    if($item['id'] === 1)
    $item['href'] = '/';
     
    echo '<a href="'.$item['href'].'">'.$item['title'].'</a>';
    }

    Can be that ['title'] is wrong, you have to check the documentation for that.

    hope that helps you.