Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have set up a static website with basic information pages such that all of the static pages fall into one level and in that directory there is directory "blog" which contains a Wordpress 3.5.1 install. This gives me the following directory structure:

  • index.php
  • blog.php
  • /blog
    • all of my Wordpress crap

I have recently been suffering from an issue that constantly re-directs me to my homepage when you try to navigate to a blog post but you are able to navigate to blog.php and it seems to be working correctly. I think something might be wrong with my .htaccess but I do not know enough about them to say. I have included both of my .htacess files below in the hopes that someone can see what is going on and help me to correct this problem.

root directory

# 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

/blog/ directory

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

# END WordPress

The website in question can be found at R2 Consultants Ltd.. Any help that you could provide would be very appreciated and if I have not provided enough information for you to be able to help me please just request what you need and I will get it for you ASAP. Thank you in advance for your assistance.

Mat

share|improve this question
    
Try updating the permalinks settings even if they seem correct. What's the purpose of blog.php? –  faa May 27 '13 at 8:02
    
@faa I just updated them to no avail. The blog.php is essentially the front page for the blog that lists out the 10 most recent articles that are on the blog. –  BadR0b1t May 27 '13 at 8:22
    
What's 'no avail', the Default setting? If so, the rule-set in the .htaccess file has been deleted. Is it? –  faa May 27 '13 at 8:33
    
You are most likely irritating Wordpress as it has not been designed for such a use. Please consult Codex how you install Wordpress commonly. Also this smells more like a support question than a concrete programming question. I suggest you contact the vendor for your support options. –  hakre May 27 '13 at 8:37
    
I recently changed the setting WordPress Address (URL) and Site Address (URL) to the same thing. When I was looking through the codex it says I can set them to have it set up like this: WordPress Address (URL): www.robroscoe.ca/blog Site Address (URL) : www.robroscoe.ca But when I do this the site breaks :\ –  BadR0b1t May 27 '13 at 8:41
add comment

migrated from stackoverflow.com May 27 '13 at 9:13

This question came from our site for professional and enthusiast programmers.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.