GoDaddy - Wordpress Site Hosting Issues - wordpress

I am using GoDaddy Windows Shared Hosting Server to host my WordPress Website. I am NOT using GoDaddy Managed WordPress service (I just copied my files on server, created DB and site works). However, I am facing some issues as follows :
Permalinks do not seem to work - Despite of the fix in .htaccess file for mod_rewrite module OR resetting the Permalink option via Admin Dashboard.
Cannot upload media : I get an error "Cannot upload media to wp-content/uploads" - If I set the upload_path in DB from BLANK to the above path, still the error continues.
To check if I have DB Connection issues: I tried to create a POST and I could do it well. Just that I could not upload MEDIA.
GoDaddy tech support is NOT able to resolve these issues.Meaning their solutions do not seem to work for me. Can anyone help me with my issues ?

1- For the first issue I suggest to use the default wordpress htaccess file which is as following :
# 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
after this go to Wordpress setting and save permalinks again.
2- for second is a privilege issue, download FTP software , ex: "filezilla", connect to your host and browse to uploads folder, right click to 'permissions' and put the privilege as 777

Please try to fix your issue with
# BEGIN WordPress
RewriteEngine On
RewriteBase /stage/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /stage/index.php [L]
# END WordPress
It seems this is permission issue. Please kindly ask your hosting provider to give full permission for you

Related

Wordpress all inner pages returning 404 after migrating to linux server from windows

I have migrated my site : http://www.mahodadhiinfra.com/ recently from windows hosting to linux hosting.
After it hosted and configured homepage running properly but unable to access any other page. i can only access page with a extension.
Ex.
http://www.mahodadhiinfra.com/wp-login.php (Working)
http://www.mahodadhiinfra.com/my-account/lost-password/ (Not working)
Initially I thought it might be a .htaccess issue but my .htaccess seems to be ok.
# 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
After that I tried with permalink change. But nothing worked. Hosting provider confirm that all settings are open what a wordpress required, e.g. AllowOverride ALL etc.
Can anyone please help me to get out of the issue?
Just 3 steps can help you:
Delete the .htaccess file
Login in /wp-admin/
Go to Permalink options and click "Save".

Can't Access Current Wordpress Web Pages

I'm uploading my website to Apache on CentOS on Google Cloud and I can't access all of my existing web pages, I get the following error:
Not Found
The requested URL /home was not found on this server.
However, when I create a new page I can access it no problem.
I've uploaded my files again, and double checked all the database stuff checked out and I've checked my .htaccess file. I can't figure out what's going on.
Make sure that the .htaccess file contains the following content:
# 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
You should also check if .htaccess is actually working. The easiest way to check this is to intentionally break it, by adding some text to the file. If .htaccess is working you should get an Internal Server Error page.

wordpress site not starting

I have moved wordpress site to production server from test server. I have done database, code configuration changes. The strange problem i am facing is if i call my website adding index.php then only it shows the site.
http://www.suziesellsaz.com/index.php
If i directly call using domain name it is not working
http://www.suziesellsaz.com
I have thought problem may be because of .htaccess so i have deleted .htacess and saved permalink and it creates following .htaccess but still no luck.
# 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 some one help me solving the issue?
Please check if under Settings > General settings
Both the urls i.e Wordpress Address and Site Address are same.
Last time I had this issue when they were different. Changing them and reseting permalink fixed this issue for me.
I am not sure about this but, Put your htaccess file back and
RewriteBase /
replace with this
RewriteBase /public_html/
and
RewriteRule . /index.php [L]
replace with this
RewriteRule . /public_html/index.php [L]
May be it's the problem of URL rewriting.
Add the below code in .htaccess file -
# 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
Once done then please make sure that the site URL and home URL for your site are set correctly. You can update the site URL and home URL from wp_options table, WordPress configuration file or from the WordPress administration panel.
Once done then please clear the cache of your system and try to access the website.
Let us know how you go.
Thanks to all of you for your valuable help and inputs. I struggled a lot on this issue and able to find the solution following these steps. Hope it will help some like me.
# Always use domain name in lower case.
In my case client domain is "SuzieSellsAZ.com" treat it as "suziesellsaz.com" all lower case.
Use Database Search and Replace Script in PHP to replace all occurence of previous domain.
ref:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Update the siteurl and home URL in database options table and all other occurrence in the database.
Once it done or database update then you should import to any server and it will works fine.
Sometime site post or page URL does not work then go to setting > permalinks and save it. Site post and page URL will work fine.

Deploying wordpress to temporary url on live server with subfolder

I have a wordpress site that I was working on locally and on a production server. The site is preparing to launch and I have to show the client that it works on the live server before the domain is transferred over. Unfortunately, the temporary url given to me is http://[ip address]/~foldername, so the site isn't working properly because it is looking in the wrong places. The homepage works fine after I put in the site_url and home_url in the admin, but clicking to interior pages is not.
How can I get it working with this temporary url but also still have it work when the domain switches over. I imagine this can be done with htaccess but not sure exactly what to do.
All I had to do was put in the subfolder in the htaccess file.. so it looked like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~subfolder
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~subfolder/index.php [L]
</IfModule>
# END WordPress

How can I get my permalinks working when uploading the database to a localhost?

I've been working on my localhost machine developing my wordpress site, and I'm going to export the database and import it to another localhost on another machine. The thing is, I've tried it already and when lets say you click on about it gives a 404 error not found in database. I'm using custom permalink structure /%postname%/
But when in the new localhost I change the custom to default it works. I don't want to /p?=123 at the end of my URL since I already have my links set up. Was wondering how I can set up the links to work?
you need to click on the wamp server, choose the apache menu -> apache modules then move the menu down and choose rewrite_module. You will need the server to restart for the changes to take affect.
If your .htaccess file is writable and mod_rewrite is enabled, WordPress will insert this code when you change the permalink structure. If it is not writable, WordPress will let you know to copy and past this code into the .htaccess
# 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

Resources