filmbokep
Graham i already delete the old 404 html, and change to a new one, but its not working too. please help me graham..... what shoud i do.
thanks
filmbokep
Graham ok, i will change my 404 script. Please give me the script.
Graham
filmbokep The problem is with your 404 script (based on one of my old ones)
the script in the twig does the redirect and your 404 page sends it straight back again because the blog post is the referring url and therefore the address the 404 script redirects back to
so it ends up in a loop
filmbokep
Graham i got trouble, when i put that script in bottom of xtblog.twig and i open my site (i am just write the domain) its direct to 404 url, and when i am delete again that script is back to normal, but my xtblog look like untidy , the title and the picture not in the center.
sir, i am not to understand about code / script. can u help me just sent the xtblog.twig to me. but that twig file already modification by you to me. i need url 404 working and my xtblog twig looking good already in the center.
for your attention i say thank you very much
Graham
Just a thought but I think you should redirect to a page that does not exist so that the proper error code is set
for example
<script>window.location.replace("/404");</script> is a redirect to an existing page so 404 is not set
<script>window.location.replace("/404.html");</script> is a redirect to a page that does not exist so xtgems 404 system takes over and sets the correct error code and loads the custom 404 page
Graham
filmbokep You need to create
_xtgem_templates folder and upload the blogs twig file to it and then edit that
Upload by remote server from
https://dl.dropboxusercontent.com/u/2162515/xtgem_blog.twig
and rename it
xtblog.twig
filmbokep
Graham am i put the code in index...? Or in another place....?
Graham
Lordeagle The title is not set for non existing posts so that would not work but you can set it in the blog twig
at the bottom of the twig file is the bit that outputs for non existing entries
{% block no_entry %}
<div class="xt_blog xt_list">No blog entry found</div>
{% endblock %}
You can add the redirect here
{% block no_entry %}
<script>window.location.replace("/404");</script>
{% endblock %}
Copy code