Hi all
Thanks for letting me join discussion
I moved a Lucee/Mura installation to a new server. I don’t have a Lucee/CF background, but more Linux/Apache/PHP/MySQL etc
Everything is working fine, except “Friendly URLs” or “SEO” or “SES” urls.
In Mura admin, I can copy paste the LinkServID directly and the page loads fine. However in the public site navigation the “Friendly” or “Short” URLs do not work, Lucee returns a 404.
I’m thinking this is something simple I’m missing but not sure. Anyone have any ideas? I think it’s something to do with servlet mappings and or web.xml… but this version of Mura is so old I can’t find any old downloads or anything. I’m just trying to get the site functioning as-is, for now.
Thanks for any help!
OS: Debian
Java Version: 11.0.27+6
Tomcat Version: 9.0.106.0
Lucee Version: 5.4.8.2
Mura Core Version 5.6.4539
Just as wild guess
Did you have urlrewrite on the old server?
https://tuckey.org/urlrewrite/
Hi thank you.
I do not have access to the old server config. Thats where I’m kinda stuck. But I do have the source code and SQL database.
I will research the link you shared and try to work with that.
Just to confirm, everything works except short URLs. The perm link/LinkServID works fine.
Thanks
Reggie
ah you might just need to enable .htacces / add a rewrite?
Well I believe at least an .htaccess rewrite. I’m not entirely sure. Another part of this is that inside Mura admin, when I create a page, it assigns a perm link to each page like this:
Content ID
989F245A-E623-4581-BB6F06F611708A4F
Permanent Link
hxxp://www.website.com:8888/default/?LinkServID=989F245A-E623-4581-BB6F06F611708A4F
I haven’t came across any rewrites in my searching that query/convert into a string like that from a short URL… as far as I can tell, that’s the only way Mura truly knows where that “page” is.
Also it’s been forever since I wrote or understood a regexp completely, I know these URL rewrites are fairly basic. I’m not fluent in CF, this is an old version of, everything. Mura 5, Lucee 5 etc.
I did find a web.config in the source directories, has a bunch of IIS handlers and SEO “safe redirect”, I’m not sure if that has anything to do with it. But I wonder because on the Mura admin, each page has an “SEO title”, which is ironically the short url the actual website links are pointing to.
Hi @rgoldman,
You’ll need some rewriting as Zac mentioned. There might be a template in the root of the code, it it hasn’t been deleted. The standard Mura installation had a apache rewrite and a IIS rewrite template.
Once you’ve got the rewrite setup, there is a Mura setting in the settings file (/config/settings.ini.cfm) called ‘indexfileinurls’. This should be set to true, otherwise the urls will be generated with index.cfm in there.
This should be enough to setup SEO urls.
BUT… your version of Mura is very outdated! Meanwhile Mura is no longer open source. I strongly advice to upgrade to Masa CMS (www.masamc.com), that’s a fork from Mura and still open source. Masa CMS has fixed multiple security issues.
Yes it is outdated. So, the old host was closing business, and we had to make a quick move. Me, thinking it was basic HTML, quickly volunteered. So now I’m stuck in this position, needing a simple redirect. But I’ve tried very many that I came across. Nothing seems to work, I know it’s something small and simple, I’m just missing it. On my searching, I did see where the original “htaccess.txt” sample was included with Mura but it’s not anywhere in the source. I believe it was IIS. Which is why I’m wondering if it could be related this web.config - https://itfab.cloud/s/7e3sTjYXHffLkYy (can’t upload attachments)
I’ve about exhausted my options unless someone knows something.
But now its even more a personal challenge 