romeo mihalcea Posted October 20, 2019 Share Posted October 20, 2019 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? Link to comment Share on other sites More sharing options...
opentype Posted October 20, 2019 Share Posted October 20, 2019 It’s better to set this up on the server level with a 301 (“permanently moved”) redirect. On Apache that would go into the htaccess file. Link to comment Share on other sites More sharing options...
romeo mihalcea Posted October 20, 2019 Author Share Posted October 20, 2019 Why is that better? I'm using Caddy server, I tried doing a 301 over there with same result ... Link to comment Share on other sites More sharing options...
romeo mihalcea Posted October 20, 2019 Author Share Posted October 20, 2019 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 } Link to comment Share on other sites More sharing options...
newbie LAC Posted October 21, 2019 Share Posted October 21, 2019 Check this Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.