wordpress links let me 404 not found - php

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?

Related

Requested URL was not found on this server

We using server centos. Running my site, currently working home page itself, rest of page not working. Please help me
File Path
/var/www/html
Not Found
The requested URL /about-us/ was not found on this server. this error coming out.
.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
You can login in wp-admin backend with credentials Administrator.
You need to be sure that the .htaccess file is editable
So, go in Settings -> Permalink, and refresh this (save without edit anything).
Another test:
I suggest return your permalink to default ( /?p=ID ) so you ensure that .htaccess is the problem.

wordpress url 404 except homepage

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.

wordpress redirecting all pages to homepage

I have a wordpress website www.spiderhost.asia, when i click on any link on the website it's redirecting to the homepage which I don't want, it was working perfectly few days back and I didn't change any config and anything in website , still it's not working properly.
I contacted server admin, wordpress admin regarding same but didn't find any solution for that.
Even I didn't make anychanges to 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 need help resolving this
That htaccess file is saying that if the file or directory being queried does not exist and it is not index.php, then reroute to index.php. Make sure that the file you're trying to query exists (and that it's in the correct directory).

wordpress 404 error when trying to acess folder on root

I have a wordpress website and within the root directory a folder called /ideal/.
The function for the /ideal/ folder is to make payments trough the website from visitors.
Everything worked well for a while, since a few days there is a problem with the page.
When i navigate to my website http://www.nibincasso.nl/ideal/ it wil show up with a 404 error.
With the release of wordpress 4.0 it looks like wordpress is trying to make some sort of dynamic link for the folder /ideal/.
However i want it to open as a static page, not by making it a wordpress dynamic page. “http://www.nibincasso.nl/ideal/index.php”.
Example of .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
Can someone help me with a solution for this problem?
Kind regards,
Fabi
Update *
I created a new subdirectory on my root with a blank index.php page only saying test
This one opens fine. But when i try to enter the subdirectory /ideal/ with the index.php i get a 404 error. How come?
Try following
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ideal/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /ideal/index.php [L]
</IfModule>
# END WordPress
There seems to be a problem with the php code inside the index from the /ideal/ folder.
I will search for the solution this is not a wordpress problem.
Thanks for helping me for so far.

Wordpress site gives me 301 error with page code under it. Page works when refreshing

I am having so much trouble with getting there mod rewrites to work. I have a site on the server that is in a subfolder called /site2013/
When you go to any page on the site it loads but when you click on any link you get a white page with the page HTML on it. Here is the site: http://willowtreespaoh.com
Once there click something under services and you will see the 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
Log in to wp-admin, visit permalinks, then click "Save". It will update all the permalinks.
FYI: I'm able to visit pages, so perhaps you've having a caching issue.

Categories