I installed OSQA on a domain. It works fine. Then I wanted to have a WordPress blog on a subfolder of the domain. So I successfully installed WordPress on a subfolder. But when I access the blog URL or WordPress admin page, it shows OSQA's "404 Not Found" page. How to solve this problem?

Here's the passenger_wsgi.py file:

!/home/username/local/python/bin/python

import sys, os INTERP = "/home/username/local/python/bin/python" if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv) sys.path.append('/home/username/mydomain.com/') sys.path.append('/home/username/mydomain.com/osqa') os.environ['DJANGO_SETTINGS_MODULE'] = "osqa.settings" import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()

asked 25 Aug '11, 13:09

blestxplorer's gravatar image

blestxplorer
17114
accept rate: 0%


you need to tell your server that instead of using django for the wordpress directory, it uses PHP. What's the server software?

link

answered 25 Aug '11, 13:21

Andrew_S's gravatar image

Andrew_S ♦
5.6k45674
accept rate: 21%

Thank you Andrew for your fast response. The server software is Apache. The domain is hosted on a shared server. So I don't have access to Apache settings. Can it be solved with a .htaccess file? How can I tell the server to use PHP for the WordPress directory?

(25 Aug '11, 13:37) blestxplorer
1

Shared host, no access to apache config... Better try a subdomain instead :)

(25 Aug '11, 13:47) Hernani Cerq... ♦♦

Okay! Thanks Hernâni.

(25 Aug '11, 14:41) blestxplorer

thanks andrew

(02 Jan, 19:33) Yours

I am working on setting up an instance of Mango Blog on an Ubuntu Server running Apache 2 HTTPD and Tomcat 6 with Railo 3.1.2. I was able to get everything setup until I started trying to implement URL rewriting for the blog URLs.

I used a combination of Adam Tuttle's and John Sieber's posts to get the rewrite rules. error80048820

link

answered 26 Dec '11, 23:35

Ally0302's gravatar image

Ally0302
1
accept rate: 0%

{webroot}/.htaccess

RewriteEngine on
RewriteBase /
# archives rule must be located before page rule for paging to work correctly
RewriteRule archives/(.*)$              archives.cfm/$1 [PT,L,NC]
RewriteRule page/(.*)$                  page.cfm/$1 [PT,L,NC]
RewriteRule post/(.*)$                  post.cfm/$1 [PT,L,NC]
RewriteRule author/(.*)$                author.cfm/$1 [PT,L,NC]
link

answered 26 Dec '11, 23:46

Ally0302's gravatar image

Ally0302
1
accept rate: 0%

edited 27 Dec '11, 12:54

Jordan's gravatar image

Jordan ♦♦
3.1k618

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×298
×9
×2

Asked: 25 Aug '11, 13:09

Seen: 799 times

Last updated: 02 Jan, 19:33

powered by OSQA