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?
Related
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 magento hosted on nginx.I have installed wordpress in magento roor directory.
I have my blog url like www.mymagento.com/blog and blog post urls are like www.mymagento.com/blog/page/2/.
The blogpost urls pages are working fine. But when I go to www.mymagento.com/blog.
The page structure is messed up.
If I enable Use Web Server Rewrites to no in magento admin, everything workes well.
This is www.mymagento.com dummy url.
How can I fix this issue please help.
Add following code in .htaccess of www.mymagento.com/blog, clean browser history and try again:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /shop/index.php [L]
</IfModule>
Hope that will help you!
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 am setting up a website inside a wordpress installation folder.
So it's like:
http://mysite.com/newsite/
Primarily, http://mysite.com is a wordpress installation, now I want to set up another site*(not a wordpress website)* on that directory which is newsite,
So basically it looks like this mysite/newsite/
When I go to that link, it changes the URL and leads me to a page of mysite page. I think maybe because of the .htaccess of the wordpress installation.
How can I access on my newly setup website without being redirecting me to http://mysite.com page?
PS:
Wordpress .htaccess configuration:
# 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
Your help will be appreciated!
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