it is possible to change the url rewrite in a cake app ?
Actually it's like this :
I want to hide everything after the ".fr" in every page, like this :
Thank you for your help.
it is possible to change the url rewrite in a cake app ?
Actually it's like this :
I want to hide everything after the ".fr" in every page, like this :
Thank you for your help.
Try this one
add this code in footer.
$( document ).ready(function() {
window.history.replaceState("Home page ", "Title", "<?php echo SITEURL;?>"); });
// you can use both
<script type="text/javascript">
$( document ).ready(function() {
/* window.history.replaceState("Home page : Dostoom", "Title", "http://192.168.1.59/dostoom/");*/
window.history.pushState("Home page : EDUCATION", "Title", "SITEURL");
})
</script>
Create a Single Page Application.
Have the landing page request everything through ajax or other such means, placing the data in the DOM without refreshing.
This way the URL will always be the same but you're also loosing benefits like the ability to go forth/back in history. You may or may not need those but for some people this will be confusing.
Doing it with rewrite wouldn't ever work the way I believe you want it happening.