wordpress url 404 except homepage - php

I have a wordpress site. I didn't faced any issue regarding the url when I configured in local. After the hosting the pages except homepage return 404 error. When I changed the permalink settings to plain url , the issue disappears. What will be reason ? I updated htacess but still the issue exists
# 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 check your rewrite rules in apache.
If rewrite rules are not enabled in apache server then this issue occurs.

Related

wordpress links let me 404 not found

update
When the permalinks is postname that would be not found , without index.php in url.
add .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
I'm the beginner to wordpress. Problem was happened that my website is not found when the permalinks setting is turned to postname.
Home page is still alive , but click on other links, it couldn't find the right page and show me the 404 not found(not from the wordpress default 404, it's apache2 back)
Remove index.php on my url was my first goal . Despite I tried to modified .htaccess or restart apache2 , it didn't work.
Currently , I set back the struct to index.php/%post_id%/%postname% and it would work .
How should I do in my terminal or modified something in my wordpress folder?

Wordpress htaccess causing redirect loop on root only without 'www.'

I installed a WordPress app on an OpenShift machine and added CNAMES to it (on CloudFlare).
I started getting a redirect loop error only when I was going to the website without www. and only on root. Going to wp-admin, for example, with or without the www. worked well.
Then I commented my .htaccess and put a message on index.php. The message is shown, both with and without www.
I got the 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
Do you know what could be wrong with my settings?
#edit
www.porta8080.com.br

Wordpress install in root and in subfolder + two domains

God, this little problem drives me crazy and I really hope that you'll help me how to figure it out.
I searched over all previous threads and in the codex of wordpress, didn't find my exact problem.
This is it :
I've one host with a wordpress installed at the root. I've one domain pointing it. Everything is fine.
I've need now a second install of wordpress, that i've installed in a subfolder. I've a second domain, linked to this subdfoler.
Like this :
root > domain.net
root/subfolder > anotherdomain.net
If I let the "site url" setting and the "wordpress url" setting with "domain.net/subfolder", this is OK, I can access to my second site and all permalinks work.
But if I edit my site url/wordpress url in "anotherdomain.net" it renders the "domain.net" homepage without style...
I'm sure this is a question of HTACCESS but I can't find how to properly write it...
Thanks for your answers !
(sorry for my english, not my mother tongue)
EDIT : Here are .htaccess (at this state, I let them in order to access subfolder via domain.net/subfolder)
root:
# 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>
root/subfolder
# 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
HTACCESS would be my first guess too, but another thought occurred to me: have you made sure that you are installing the two sites in two distinct SQL databases?
Assuming this is not the problem, is there any way you paste your htaccess files, so I can see if there is an issue in them?
All the config were good, the problem was with my host provider.
For the record, the htaccess for the site in the subfolder, when everything is 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
And the site and wordpress urls pointing to the new domain.

Wordpress error "You do not have sufficient permissions to access this page" from http-https

I am using wordpress 4.1 and I changed from http to https, then when I tried to login I am getting an error that
You do not have sufficient permissions to access this page.
So could any one help me how to solve this problem.
I have this issue too,
backup your .htaccess file, and use this
# 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
then, in wp-config remove the https back to http
define('WP_HOME','http://www.example.com');
define('WP_SITEURL','http://www.example.com');
this should get you back to the dashboard, and you can start working on it again.

Parallel Plesk - Getting a 404 error on my wordpress homepage

I am getting Error 404 - Page not found on my Wordpress' homepage. I think the rewrite rules are fine 'cause I can see the other page -http://accuratewatch.com/
But if I directly call the index.php file, I will get the desired result - http://accuratewatch.com/index.php
I think the rewrite rules are fine 'cause I can still see the other pages. I even put the redirect rule but it's not working. Here's the copy of my .htaccess
DirectoryIndex index.php index.html
Redirect / index.php
# 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 am using Parrallel Plesk and the site was working with .asp before so I override it with index.php.
Can you help me figure out the source of the problem?

Categories