• Resolved winterpolaris

    (@winterpolaris)


    Hi Guys,

    Need your experts help. After getting my wordpress design done in MAMP, i had did the following to export online.

    1) Duplicate Database and edit the sql by changing all localhost urls to my live URL.
    2) Go to my web hosting panel and create the database and import the duplicated DB tables in.
    3) Go to my wp-config.php file and edit the database username and pw accordingly
    4) Upload my wordpress files on the server.

    My source for the above steps were taken from this website:
    https://www.webdesignerwall.com/tutorials/exporting-and-importing-wordpress/

    So far is good till when i key in my LIVE URL > wwww.abc.com I cannot see anything. However if i keyed in https://www.abc.com/index.php, i was able to view my webpage.

    Upon clicking on the sub links > https://www.abc.com/categoryname/categorypage/, i hit 404 again. ??

    Can anyone please advised?

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Thread Starter winterpolaris

    (@winterpolaris)

    Hi esmi,

    thanks for the link. However i am still facing some problems. I think is due to the .htaccess. So i am very confused. Need your advice.

    1) I had already made .htacces file to permissions of 644.

    2) I opened up my .htaccess file in my local server which reflects this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /foldername /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /foldername /index.php [L]
    </IfModule>
    
    # END WordPress

    So i’ve changed the contents saved and send it to my online server

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    I still can’t seemed to make it work. When i key https://www.abc.com. i still received 404 error but if i add “index.php” behind https://www.abc.com it was fine.

    Any help?

    Thread Starter winterpolaris

    (@winterpolaris)

    Okie, very strange.

    I removed my permalinks and have now i can access https://www.abc.com. without putting the index.php.

    Will check on why my permalinks are not working.

    Thread Starter winterpolaris

    (@winterpolaris)

    Okie i fixed the problem … by changing my web hosting. It was running on Windows platform. Had switch to Linux and now wordpress works like a breeze…

    I know there are some fix for Windows Platform but really can’t be bothered with all the fixing so decided to change the web hosting instead which helps to solve the problem instantly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘404 Error after importing WordPress online’ is closed to new replies.