So I have a wordpress website installed in the root of my domain and it is up and running fine. I want to install a shopping cart in a subfolder but it's giving me trouble. I have a folder called "magento". In that folder is a filed called downloader.php and index.php.
When I try to access the file, Wordpress was giving me a 404 error like it was thinking I meant it to look for a WP article.
I tried a different .htaccess file which changed it to a standard 500 error now.
I've googled for this and found tons of people with the same problem, but haven't found a solution that works. I also checked the permissions and the folder is 777 and I changed the files to 777 as well but it still doesn't work.
The .htaccess file in the root (public_html) file simply shows
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php [L]
</IfModule>
# END WordPress
I don't know anything about configuring .htaccess files but if anyone has any suggestions on how I can get this to work, that'd be great.
Thanks!!
You can install an empty .htaccess file in the magento subdirectory. This overrides the Wordpress .htaccess file and allows to access the files in that directory.
Never change file permissions to 777. This is dangerous, because it allows anybody to modify your files.
Related
I’ve changed my custom permalink setting to /%pagename%/ (which is common, I guess). However, the following problem keeps occurring:
When trying to open a post on my website, I receive a 404 error. When changing the permalink setting back to Standard, the errors disappear.
After googling, I found that there is a way to solve this by editing your .htaccess file. Even after this, the same problem reoccurs. As I would like to have clean page-names, would anyone know how to solve this problem?
Greetings,
Tom
Kindly delete your .htaccess file from the root folder and check your site again, if the problem is still there than regenerate the permalinks using %postname%.
For the url rewriting WP feature to work, WP writes the .htaccess file at the root of your WP installation.
Open the .htaccess file and check whether or not you have this piece of code:
# 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
If it is missing, you have 2 options:
change the file permissions so that WP can write it.
or add the missing code yourself to the .htaccess.
I have problems with one of my Wordpress sites at my host.
Today I installed "Traffic Stats Widget" - plugin and I followed their instructions for installation. So , I did this:
Create a robots.php file on the root directory of your blog: ie public_html/your-blog/ Paste the following code without // in it:
# #
Open .htaccess file in the same directory and paste this in it:
RewriteRule robots.txt robots.php
Make sure you have the 'RewriteEngine On' clause in place...
Make sure you have a robots.txt file, even an empty one, on the root directory
After that I was unable to access all of my subpages.
This is link of my website:
http://idealpvc-dev.com/websites/camel/
And if you try to access some of subpages you will get error 404.
I don't know why, because I restored my .htaccess file but still it doesn't work.
Also I made comparison with others .htaccess file on other wordpress sites but there isn't any differences except folder names.
Any suggestion will be appreciated.
Also, above is content of my .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /websites/camel/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /websites/camel/index.php [L]
</IfModule>
# END WordPress
Sites is located at /public_html/websites/camel
Thanks in advance
Make this as a RewrieBase in your htaccess file
RewriteBase http://idealpvc-dev.com/websites/camel/
Instead of this
RewriteBase /websites/camel/
And make your wordpress permalink Default From Wordpress Admin panel > Settings >> Permalink >>> Default
I am creating a new page in Wordpress, but it returns 500:
http://d4zed.com/test-page/
What could be the reason why? The .htaccess looks pretty standard:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /d4zed-new/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /d4zed-new/index.php [L]
</IfModule>
I really have no idea about how Wordpress works internally (though I have quite an experience in Rails), so I am ready to answer your additional questions.
Thank you!
Internal Server Error in WordPress can be caused due to various reasons. You can try the following options in order to solve the problem.
Checking wrong .htaccess file
Rename .htaccess file. If the site loads after this then you can infer that the problem is due to wrong .htaccess file. So you have to create a new .htaccess file.
Increasing Memory Limit
Create a file named php.ini and paste the code memory_limit = 64M; in it and upload it to WordPress root folder as well as to wp-content, wp-admin folders in order to increase the Memory Limit.
Deactivating plugins
The problem can be caused by an installed plugin. So, by deactivating all plugins and activating one by one you can find out which plugin is making the problem.
Reuploading WordPress core folders
If the WordPress core files are creating the problem, it can be solved by reuploading wp-admin and wp-includes folders.
Contacting Hosting Provider
Contact your hosting provider. If it is a server problem they can help you.
I just installed Wordpress but can't view the "Hello World" test page due to a permissions issue. I'm getting a 403 error. I can get into index.php (in the wp-admin folder) to modify the file, but when I click on the link to view it I get the 403. There is no .htaccess file in my Wordpress folder[see update below]. I'm not sure what permissions to change. I did chmod the permissions on the Wordpress folder to 755 but it had no effect. I did not do any sort of recursion on the chmod as I didn't want to do a blanket permissions change without knowing just what I was doing. What should the permissions be on the various Wordpress files and directories? I'm running a Centos 6 server.
Update:
I have added the following .htaccess file to the wordpress folder but still have the same problem.
#BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /var/www/vhosts/mydomain.com/www/wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /var/www/vhosts/mydomain.com/www/wordpress/index.php [L]
</IfModule>
#END WordPress
BTW, if you wish to vote me down, I understand your need but would appreciate a few words why. Thx.
UPDATE #2:
I have check my permissions and my folders are at 755 and the files at 644, which is what they are supposed to be from the information I'm finding.
I found the answer to this problem. I had to add this line to my .htaccess file. Now everything works:
DirectoryIndex index.html index.php
I've transferred my wordpress website from my localserver to a folder on my server. It is located in /wordpress. I have created a new database, new user and password and imported. I have also changed the location and home of the website in wp-options. I have changed the wp-config file. I'm still getting a 404 error. I then tried removing all the files, adding a clean install of wordpress then added my theme but still the same error. I can't even access admin or install. Can someone talk a look and tell me what I've done wrong? I have done this before and it normally works fine. Could it be the hosting?
See website here
I've check my .htaccess file and it says the following:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
Check you're .htaccess file. I had this exact same issue the other day. Because it's in a subdirectory, it's keeping track of that in the .htaccess file, and I'm going to guess the subdirectory on the server is named differently than what it was on your development environment :)
Check you're .htaccess file and if you dont want to do coding in htaccess file.
Then login to wp-admin and go to the permalink section and hit update button
Hope it will solve the problem
Thanks
First of all remove .htaccess file and login in wordpress to run normally, lets check to conform this error due to .htaccess file.
Hope this helps you. Thanks ;)