Forum Moderators: open

Message Too Old, No Replies

index.php not found and contact form issue

index.php not found and contact form issue

         

Cando

8:54 pm on Jul 22, 2009 (gmt 0)

10+ Year Member



Hello,

Newbie here in need of some help. I moved a word press website from my root directory to a sub folder. Using phpMyAdmin I exported the database and edited it in an text editor doing a find - replace function on the address changes.

Then I dropped my old database and imported the database I just edited. Now when I click on a link on the website I get the following error:

The requested URL /index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an Error Document to handle the request

When I got the error I went and checked my file directory index.php file was in new folder, but I noticed that I forgot to move the .htaccess.file. So I moved that into the new folder,but still getting the same error.

So I removed the file and replaced it with a fresh .htaccess.file tested the software, but got the same error ... currently the .htaccess.file has following rewrite code:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /crandell/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /crandell/index.php [L]
</IfModule>

# END WordPress

crandell is the folder I moved everything to, so what am doing wrong?

I didn't bother changing the config-php, as nothing is really different with names etc.
__________________________________________________________________________

Oh, another problem I'm having is an issue with CONTACT-FORM plugin:

I set-up a [CONTACT-FORM] on a page in my WP and everything seems okay. However when I tested it, I never received the email notification to the email address (<-- gmail) I sent the plugin to forward to.

Any ideas what the problems might be?

Thanks again in advance.
Rob

ergophobe

11:37 pm on Jul 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



For now, rename your .htaccess and then see if index.php is available with the full URL: example.com/subdir/index.php

If yes, then start troubleshooting your rewrites.

Your rule would only, by the way, match a request that consists of one and only one character.

If you want it to match zero or more characters, it needs to be
RewriteRule .* /dir/index.php

Also, get rid of the RewriteBase unless you have determined that you actually need it. If your server path is not an aliased file path, you don't. If that makes no sense, just try it both ways, but I think you're trying to use it in a way that is different from what it actually does.

check this out
[webmasterworld.com...]

lorax

1:57 am on Jul 23, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld!

Ooog... is there a particular reason you didn't follow WordPress's guidelines: [codex.wordpress.org...]

Cando

2:04 am on Jul 23, 2009 (gmt 0)

10+ Year Member



Hello again,

Must had been a glitch or I just needed to clear cache or something. Because everything is working now, WP and the contact form

Go figure ;-)

Any rate, thanks again.
Rob

ergophobe

4:56 pm on Jul 28, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Stranger things will happen as you go along!

Welcome to WebmasterWorld by the way. Come back if you have more questions (and come back if you have more answers too for that matter!)