Existing website, integrated wordpress, htaccess conflicts (4 posts)

  1. dictionaruldevise
    Posted 1 year ago #


    I created a PHP website, and now I'm trying to integrate WordPress into it. I'm not interested in moving my website to wordpress entirely.
    I installed wordpress in a folder called "articole", created a custom child theme of twentytwelve, tested it, everything is working and displaying fine in the blog.
    I have a mode_rewrite for this website, so any menu link is in the form foo-bar/ which maps into foo_bar.php.
    Now, I want to display on an existing page a few articles from the blog. I created a new page, let's call it bla_bla.php, and on this page everything works fine.
    The problem appears when I added the wordpress code to an existing page that is mapped to a URL rewrite (foo-bar). When loading this url (www.example.com/foo-bar), in gets redirected to http://www.example.com/articole (where I store my wordpress blog). There is no way to go directly to the desired page. Even if I type http://www.example.com/foo_bar.php, it doesn't work.

    From what I can make up, the problem is probably a conflict between the .htaccess of wordpress, and the .htaccess of the website.

    What can I do to fix this?

  2. Why are you making a page named foo_bar.php in the first place?

    Is that ACTUALLY the page name in WP? Or are you instead talking about a physical file on the server?

    And if you think it's .htaccess, please share with us what yours is :)

  3. dictionaruldevise
    Posted 1 year ago #

    Yes, I have a php file called foo_bar.php. It doesn't have anything to do with wordpress. I just want to display in it the posts from a category from wordpress.

  4. Okay, so what's your htaccess look like? :)

    Also ... using a file to call posts from a category in MULTISITE is not as simple as single site and may not work at all (i.e. I don't know anyone who's made it work without using an RSS feed instead).

Topic Closed

This topic has been closed to new replies.

About this Topic