Jump to content

Friendly urls for some migrated content not working


romeo mihalcea

Recommended Posts

Posted

I have this website that I migrated to IPB...except for the blog because I cannot get the friendly urls to work. In my old blog I have a post that sits at /blog/hedging/ (yeah that's a post). I copied that post and created it on my IPB blog which now sits at this endpoint: /blogs/entry/2-why-we-use-hedging-language-and-its-impact-on-our-writing/

 

In my ACP > Friendly URLs I added an entry from /blog/hedging/ to app=blog&module=blogs&controller=entry&id=2 but it is giving me a 404. If I take the normal url (app=blog&module=blogs&controller=entry&id=2) and paste it in the browser it works just fine so what's the catch here please?

Posted
21 minutes ago, romeo mihalcea said:

Why is that better? I'm using Caddy server, I tried doing a 301 over there with same result ...

Relevant Caddy config

localhost:80 {
        root /var/www/
        log /var/log/caddy.log

        rewrite /blog/hedging/ {
                to {path} {path} /index.php?app=blog&module=blogs&controller=entry&id=2
        }

        rewrite / {
                to {path} {path}/ /index.php?{query}
        }

        fastcgi / 127.0.0.1:9000 php
}

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...