Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
romeo mihalcea Posted October 20, 2019 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?
opentype Posted October 20, 2019 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.
romeo mihalcea Posted October 20, 2019 Author Posted October 20, 2019 Why is that better? I'm using Caddy server, I tried doing a 301 over there with same result ...
romeo mihalcea Posted October 20, 2019 Author 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 }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.