2014-01-13, 06:41:53
Howdy
I've stumbled upon a problem after modifying an old, static website.
After converting /*.html pages to GS, old links ceased to work.
There's no problem with rewriting them using mod_rewrite.
But I'd like to get the possibility to do it from within GS admin panel, just by adding .html in the page's url field.
clean_url() function inside basic.php stripes unnecessary chars from url, and after modifying it I'm able to save the page with fake .html extension.
But that's not all what I needed to change, as I get 404error while visiting such page.
Could anyone point me to the right function where I could tweak the code to achieve the goal, or maybe there's another, supersimple solution ?
I've stumbled upon a problem after modifying an old, static website.
After converting /*.html pages to GS, old links ceased to work.
There's no problem with rewriting them using mod_rewrite.
But I'd like to get the possibility to do it from within GS admin panel, just by adding .html in the page's url field.
clean_url() function inside basic.php stripes unnecessary chars from url, and after modifying it I'm able to save the page with fake .html extension.
But that's not all what I needed to change, as I get 404error while visiting such page.
Could anyone point me to the right function where I could tweak the code to achieve the goal, or maybe there's another, supersimple solution ?
Addons: blue business theme, Online Visitors, Notepad