Wordpress permalinks not working - new to GCP

60 views
Skip to first unread message

Daniel Caggiano

unread,
Oct 23, 2018, 10:56:07 PM10/23/18
to gce-discussion
Very new to GPC, trying out the free tier plan.  I have managed to install Wordpress using the marketplace, used managewp.com to clone my site (in order to move it to GCP) and the site seems to be working however when I set the permalinks to Plain everything navigates fine:  http://tmproductsdirect.com/?p=123

However ifI change the permalinks to Post Name http://tmproductsdirect.com/sample-post/ all links are broken.

htaccess is set to 777 (temporarily) and here is the htaccess file itself:


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

# END WordPress

Can't figure out why website links do not work when permalink is set to Plain.

Please help!


Yui (Google Cloud Support)

unread,
Oct 24, 2018, 11:34:24 AM10/24/18
to gce-discussion

Hi

Visiting “http://tmproductsdirect.com” only worked on the main page, however any other clicks failed with the following error: “The requested URL /sample-post/ was not found on this server”.

I did some research and found a particular user encountering a “similar” issue to yours with fix included, where the front page of the site was working however sub pages failed to load.

If that is not your use case, you may follow this link for further troubleshooting as to reasons your permalinks are breaking and their resolution steps.

If doing the above are unsuccessful, I would  invite you to post your issue on serverfault in order to reach a broader audience after setting the appropriate tags, eg .htaccess, wordpress, permalinks…..


Reply all
Reply to author
Forward
0 new messages