I have installed a test blog on RichBloggers Domain. I am trying to use permalinks. With My current settings as follow
The site links works but with query string in url like
But when I change the setting to post name
My Links give me error
Here is my .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
What am I missing?
Finally I figured it out. The Hosting Server I am using has old Plesk on it and doesn't have cPanel so the PHP version is outdated. URL rewrite is not working because Mod_rewrite is not enabled.
check by deactivating other plugins once and check by setting theme from WordPress default theme.
and then by setting permalink again.
check if this issue still coming. otherwise it will be conflict issue.
Simple click again the permalinks post name radio button and save it, it will solve your problem now.
Check if the category exist if not then it would throw that error.
Related
I've moved WordPress from hosts to Xampp local hosts.
I corrected the links inside the database. Although the home page is loaded.
But on every link, I'm redirected to the http: // localhost / dashboard page.
I use WordPress 4.9.6, Xampp 3.2.2 and Windows 8.1 64-bit
my .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
please guide me, thanks
For me, changing the .htaccess file as #Ustav suggested did not resolve the issue. After making that change, while I was no longer redirected to the XAMPP dashboard, I was instead redirected to a 404 page from Apache.
What did resolve the issue for me was simply navigating to Settings > Permalinks in the WP admin, scrolling to the bottom, and clicking "Save Changes", an idea I got from this WP forum page. That immediately fixed it, no changes to .htaccess required.
The remote-to-local transfer instructions I followed can be found on this 1&1 Ionos instruction doc
Try this:
Go to htaccess file.
Inside
<IfModule mod_rewrite.c>
...
</IfModule>
Put this code
RewriteRule . FOLDERNAME/index.php [L]
I am trying to redesign a website from a friend and it's chaotic as hell. Now I am stuck a bit.
The old domain it something like http://www.website.com/folder/
I am trying the get rid out of the "folder", so I changed the setting in the wordpress setting and the root in the web-provider. The whole website is working fine, also the Wordpress admin area. But if I'm trying to get into the "home" page, it won't load - or it is loading endlessly.
Do you have any idea how I could fix it?
Regards and thanks,
Natts
A piece often forgotten is the .htaccess file (found in the root of your WP install); I especially suspect it because you're going from a subfolder to no subfolder.
Back it up, then override it with the default WordPress values (or delete it and go to Settings -> Permalinks in WP Admin)
Default .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
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.
I am working on the site: http://cancerhope.com/
If you go to the home page it works but if you click on any of the links it doesn't. It did work before but I had a nameserver issue that I resolved last Friday. I have tried various permalink settings (default, postname, date, etc.) It is currently set to postname but none of the pages work and I am not getting any errors in my console. I have tried turning off the plugins to no avail.
Here is a page that shows up blank: http://cancerhope.com/consultation/
I have tried deactivating all the plugins and changing the theme to a standard WP theme. I have deleted the htaccess file and reset the permalinks to default as well as postname and other settings. I even deleted the htaccess file between these changes.
Current htaccess code is:
# 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
Nothing seems to work.
Strange thing is that the blog page works:
http://cancerhope.com/blog-2/
The actual article that we have there works to:
http://cancerhope.com/2015/08/welcome-to-cancerhope/
Any suggestions?
Well I did a wordpress installation with the newer version now available at dere website..
I did my installation at a subdomain: foo.abc.com
the problem came with the permalink which do not work dere bec of the htaccess file.
Can any one suggest me how to do that, i need to have only the category/postname
Till now i am able to do foo.abc.com/index.php/category/postname - I don't want index.php in it.
I have used this htacess file:
# disable the rewrite engine
RewriteEngine on
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
RewriteRule ^post/([0-9]+)?/?([0-9]+)?/?$ /index.php?p=$1&page=$2 [QSA]
</IfModule>
# END WordPress
Please correct me if possible.
I'm not totally sure I understand the problem, but I'll try and throw out a few solutions.
In the Wordpress back-end, under the General Settings Tab- have you set the "Blog address (URL)" and "WordPress address (URL)" to the correct domain? This may write the correct .htaccess setting for you.
If you are trying to do something fancier with the domain such as category.blog.com/post_id, perhaps take a look at the WP Subdomains plugin.