hope you're well, I am coding a basic Trading site and my main site works yet my mobile site gives me a No File error, I use a js script to redirect people to the mobile directory which just has a few things removed and some css changed.
The site is the rleague part, to view as if you were on a mobile device in the dev thing (f12) and click the little phone.
I think its the Js thats wrong so here it is:
<script type="text/javascript">
if (screen.width <= 699) {
document.location = "https://tom-croft.com/rleague/mobile/index.php";
}
</script>
This is in the head of my home.php and index.php on the desktop versionso you are redirected as you enter the site.
Any help is appreciated a lot :D
Never mind people, it was a database error, I had my config from when I was hosting on xampp, although this is a funny error for a database connect file.