I installed worpress to my main domain abcd.com. My addon domain name is fghi.com, when i try to access any worng page form addon domain for example fghi.com/fdsf i see internal server error.
I am using .htaccess file in root directory of wordpress installation. Here is code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
anybody know the correct solution?
Wordpress can't be successfully accessed from your secondary domain because the Wordpress installation site url is set to one address. In your case, Wordpress recognizes "abcd.com" as the site url, and therefore any other url, even though it may point to the correct folder, will cause an internal service error
Related
I'm uploading my website to Apache on CentOS on Google Cloud and I can't access all of my existing web pages, I get the following error:
Not Found
The requested URL /home was not found on this server.
However, when I create a new page I can access it no problem.
I've uploaded my files again, and double checked all the database stuff checked out and I've checked my .htaccess file. I can't figure out what's going on.
Make sure that the .htaccess file contains the following content:
# 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 should also check if .htaccess is actually working. The easiest way to check this is to intentionally break it, by adding some text to the file. If .htaccess is working you should get an Internal Server Error page.
I am using linux share hosting. I have hosted my laravel project in a subdomain test.example.com and the main domain installed by WordPress (Not multisite). When I am trying to access my subdomain it shows test.example.com’s server DNS address could not be found.
My WordPress (In main domain) 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
two things to check here
if you've added the sub-domain and made the laravel's public directory root directory.
secondly if there's any .htaccess files or code parts rather than those you've mentioned
I have hosted my website on an amazon ec2 instance and it seems that all the pages except the home page are not working
example.
The requested URL /about/ was not found on this server.
Where I select in the permalink setting/Custom Structure '/index.php/%postname%/' it works fine, by the index.php is always part of the url.
The installation if Apache is fresh as well as the one for the wordpress. in my local host, everything is working fineWordpress
This is the .htaccess
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
is this an Apache problem or is it wordpress? and how can I solve it?
I have installed a wordpress site for a client.
The site works fine on local system as well as the test server but not on the live server. The domain is created as an Alias of an existing site. Homepage displays fine but internal pages show blank with a 500 internal server error in Firebug console.
For the past 3 days I've searched and applied all sorts of fixes to .htaccess, code etc but it doesn't seem to fix.
What I've tried:
Uploaded the code and database twice.
Generated .htaccess fresh using permalinks settings of wordpress.(there are no custom rules in my .htaccess)
Set php code to display all errors but there are none, only notices.
Talked with the server hosting guy and got the memory limit increased.
What I've not tried yet:
Persue the client to create a subdomain instead of an alias.
Please suggest any possible fixes. Thanks!
# 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
UPDATE: Issue Resolved: It was a memory issue on the server. Disabling a few resource-heavy plugins pointed me in the right direction.
Have you tried this...
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /put-the-alias-here/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /put-the-alias-here/index.php [L]
</IfModule>
# END WordPress
I was trying to use permalink feature of WordPress on my localhost so I just made copy the code which was generated by WordPress when I clicked on post name from Common Settings. I saved that generated code in my localhost where the wordpress index.php file was stored in the name of .htaccess and now when I am going to visit the page, url bar of the browser is showing the full address of the post but the post can not be seen on the browser.Only the 404 Not Found error is comming. Can someone tell me what is the wrong part here?
You should let wordpress write this file for your localhost server.
You cannot simply copy .htaccess from another server and expect it will work, you have to modify it to reflect your server conf.
You should modify RewriteBase and the last RewriteRule, e.g. for http://localhost/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>