when setup OSQA to sub folder like /en,/jp it was break the css style..

check http://www.iosqna.com/en/

how should i do?

asked 12 Jul '10, 13:06

iOSQnA's gravatar image

iOSQnA
6114
accept rate: 0%

1

How did you setup the subpath? With an apache alias?

(12 Jul '10, 13:08) Hernani Cerq... ♦♦

i didn't set any apache alias setting. is there any way to manage in settings_local.py file?

SITE_SRC_ROOT = os.path.dirname(file)

(12 Jul '10, 13:11) iOSQnA
1

Ah, yes, that's why I asked, because if you use an apche alias, then there is some known problems with django. If that's not the case, try changing the setting FORUM_SCRIPT_ALIAS to your subpath, for example /en.

(12 Jul '10, 13:15) Hernani Cerq... ♦♦

another error comes...see that http://www.iosqna.com">url..http://www.iosqna.com/en/ The current URL, , didn't match any of these.

(12 Jul '10, 13:22) iOSQnA
1

Yeah, I just realised later that I had to ask you how did the /en get appended, I could imagine this would happen :) http://www.iosqna.com/en/en/

So, what's the configuration you're using to get the /en appended?

(12 Jul '10, 13:30) Hernani Cerq... ♦♦

there is a file .htaccess and .fcgi in en/ folder and fcgi call the osqa. is that what you want to know?

(12 Jul '10, 13:38) iOSQnA
1

i want to run multiple site like for japanese and english etc...separately site code and database.. like site.com/en and site.com/jp . there is a fcgi file each folder en, jp and call the each process. it works well except breaking css style.

(12 Jul '10, 13:47) iOSQnA
showing 5 of 7 show 2 more comments

Ok, so if everything runs ok except for the styles, there's no need to reinvent anything :) Just create the alias /m/default/media in Apache pointing to forum/skins/default/media in the osqa folder and all the styles should be correct.

link

answered 12 Jul '10, 13:58

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.5k65570
accept rate: 52%

is it right? adding the below sentence into .htaccess ? [an error occurred while processing this directive] error comes...

Alias /m/default/media /forum/skins/default/media

(12 Jul '10, 14:06) iOSQnA
1

Well, you forgot something before /forum :)

Alias /m/default/media /path/to/osqa/forum/skins/default/media

It's the absolute path in the filesystem, not in the folder.

(12 Jul '10, 14:13) Hernani Cerq... ♦♦

the hosting server that i use doesn't support Alias command . so i create symbolic link like below

ln -s /m/default/media ~/.local/lib/python2.6/site-packages/osqa/forum/skins/default/media

but it is not working...same as before ~

(12 Jul '10, 14:24) iOSQnA
1

hum, I don't understand that link, what's your hosting provider?

(12 Jul '10, 14:54) Hernani Cerq... ♦♦

OK. i solved this problem using subdomain. haha thank you for all your support!!

(12 Jul '10, 15:06) iOSQnA

my hosting provider is bluehost.

(12 Jul '10, 15:07) iOSQnA
showing 5 of 6 show 1 more comments
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:

×26
×1

Asked: 12 Jul '10, 13:06

Seen: 549 times

Last updated: 12 Jul '10, 15:07

powered by OSQA