1

I'm working on WordPress website locally and I'm using Git. I followed this tutorial http://www.designcollective.io/blogs/manage-wordpress-with-git and everything works fine on localhost. I moved my website to server, changed database name etc. And homepage works fine but I can't log into wp-admin. It gives me this:

Not Found

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

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

Same goes for any other page except homepage. I checked database, wp-config, permissions of folders. Only thing diffrent from normal wordpress installation is that I have wp-content outside of wordpress folder same with wp-config but I point it out in index.php the way it's described in tutorial.

Any sugestions? Can't modify httpd.conf as I'm on shared hosting.

That's my .htacess 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

And that's my directory

enter image description here

1

Tried to solve the problem on my own. I changed structure to typical wordpress installation but it didn't help. So I deleted wordpress, cleaned database, installed wordpress again and manually moved my theme to Wordpress. Now everything works fine.

0

Can you show us your directory and your .htaccess file ? To be honest, moving the wp-config.php outside of WordPress directory is a good thing, but for wp-content, it's not in my opinion.

  • Updated my question. – Zubru Mar 2 '17 at 12:36
  • Can you access to yoursite.com/wordpress/wp-admin or yoursite.com/wordpress/wp-admin/index.php ? – Elex Mar 2 '17 at 12:44
  • Nope, both returns the same error I put in question. "The requested URL /index.php was not found on this server." – Zubru Mar 2 '17 at 12:47
  • If I understand, you have change the index.php to require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' ); – Elex Mar 2 '17 at 12:52
  • Yes, I have it in index.php: – Zubru Mar 2 '17 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.