Parallel Plesk - Getting a 404 error on my wordpress homepage - php

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?

Related

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 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 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.

htaccess redirect wordpress to index2.php

We have a site running on WordPress ada.localhost.com
Now all request to base url (http://ada.localhost.com/) have to go through tracking page (track.com/c/0912321323/?u=xxx) where u parameter is where to redirect user after he is tracked.
I've created a copy of index.php (index2.php) and I want to create htaccess rule to redirect all base url traffic to:
http://track.com/c/0912321323?u=http%3A%2F%2Fada.localhost.com%2Findex2.html (http://ada.localhost.com/index2.php)
Typical WP htaccess file looks like this
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Any clue on how to set it up and if WordPress allow this configuration?
From what I found WordPress won't work with index2.php.
Solution for this is to write a plugin which deals with it.

301 redirects and wordpress pretty permalinks

I am moving from an old php based site to a new one based on wordpress. In the process we are getting rid of quite a few unnecessary pages.
However some of the pages are showing on google, and I want to avoid 403 or 404 errors by using 301 redirects to pages now containing the same info on the new site.
My current .htaccess shows:
# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine Off
SetEnv DEFAULT_PHP_VERSION 53
DirectoryIndex index.cgi 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
and I was wondering what the best way to do 301 redirects is? putting them before or after the code just gives a 404 error.
This should work;
redirect 301 /old/old.htm http://www.website.com/new.htm
Putting a rule similar to this before the index.php rewrite rules should work:
RewriteRule ^(.*)$ http://newwebsite.com/$1 [R=301,L]
You can put a bunch of RewriteCond's before it to catch only those pages with issues.
For the specific case you posted in the comments, this rule works:
RewriteRule ^why-choose-us.* about-us [R=301,L]

Categories