• Resolved ahitman

    (@ahitman)


    for some reason when i installed this it installed perfectly but when i try to access the site through mobile phone it only shows the words that are on my sight, no pics, no background or anything. its installed on my local wamp server. also i can only access first page ie. landing page when connecting to it remotely any other page it gives forbidden, its like i only have permission to view landing page only remotely.

Viewing 8 replies - 1 through 8 (of 8 total)
  • WAMP does not by default set up as externally visible. You have to configure it to do so and it’s not recommended.
    This is not a WordPress problem.

    Thread Starter ahitman

    (@ahitman)

    I have it setup to be visible externally, and my gaming server backend is working just fine, I can access it on mobile and desktop and everything shows as per normal, its only giving me problem with wordpress so i know its a wordpress thing.

    Dion

    (@diondesigns)

    It actually is a WordPress problem, or technically, a design decision (hardcoding full URLs for site and home) that made a lot of sense in 2004 but not so much in 2019.

    My guess is that you set https://localhost for the site and home URLs. That base URL is being used for creating all CSS/JS/image URLs. Obviously those URLs are not valid from the outside world, so your CSS, JS, and images aren’t loading.

    If WordPress allowed relative URLs for site and home, I suspect your site would work exactly as you wanted. It would also solve the problem with switching WP from http: to https:, as well as migrating a WP site from one domain to another. Maybe some day…

    Thread Starter ahitman

    (@ahitman)

    Oh wow thank you. So basically I need to find myself another cms system that actually supports that? Cant you point me in that direction good sir. Or can it be fixed? Because I already did alot with the wordpress.

    • This reply was modified 5 years, 6 months ago by ahitman.
    Thread Starter ahitman

    (@ahitman)

    @diondesigns Thank you, I figured it out, was exactly what you said. Had to go into my database and manually set both site and home urls.

    Dion

    (@diondesigns)

    I’m glad you figured it out! Keep in mind, however, that WordPress assumes site and home are full URLs. Changing them to relative URLs will cause a number of problems, such as the CUstomizer not working correctly because it sets an incorrect IFrame header. You should also make sure WP_DEBUG is set to false — a large number of PHP notices will be thrown due to WP using parse_url() on the URL and assuming the host key is present.

    (If you’re wondering why I know these things, I wrote a plugin for clients that allows relative URLs to be used for site and home.)

    Thread Starter ahitman

    (@ahitman)

    Ok thanks very much and yes WP_DEBUG is set to false by default. Good job on that plug man

    shakeel7375

    (@shakeel7375)

    Can anybody else help me to solve this problem on the localhost using WAMP Server? my project does not open after the creating database in MYSQL,, Therefore i still waiting to get right solution to open my project for installing the WordPress in my localhost. The following error is show whenever i wanna open my project to install the WordPress on my localhost.

    ?
    Hmmm…can’t reach this page
    Try this
    Make sure you’ve got the right web address: https://shakeelahmed
    Search for “https://shakeelahmed” on Bing
    Refresh the page
    Details
    Report this issue

    Privacy statement

    • This reply was modified 5 years ago by shakeel7375. Reason: to inform me by email
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wordpress on wamp’ is closed to new replies.