Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

.htaccess problem in GoDaddy, please help

0 votes

I have installed QnA in my domain alias site (my main domain is site1.com hosted in godaddy, QnA is installed in site2.com)

I see all the last 4 out of 5 (except the first one) option:

 /index.php/123/why-do-birds-sing
 /?qa=123/why-do-birds-sing
 /?qa=123&qa_1=why-do-birds-sing
 /index.php?qa=123&qa_1=why-do-birds-sing

But, I want the first option:  /123/why-do-birds-sing (requires htaccess file)

Could somebody plz provide me the .htaccess file, here I paste mine:

DirectoryIndex index.php
RewriteEngine On
#RewriteBase /your-sub-directory
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]

 

I contacted godaddy, and they said, everything is okay on their part after reading this page: http://www.question2answer.org/htaccess.php

Please, suggest. Even after 3 months of deploying the site and having more than 100 QnAs my site is not Google friendly.

 

asked Sep 19, 2011 in Q2A Core by rajan

2 Answers

0 votes

Where you have the boxes saying "OK" (or blank as the case may be), they are actually iframes showing a URL like example.com/qa/url/test/some_junk_here

Try opening the iframe location in a new window, and let us know what you see, if there are any specific errors for example. That may help us or Godaddy find the issue.

answered Sep 20, 2011 by DisgruntledGoat
"500 Internal Server Error" usually means there is a problem with the htaccess, but yours is exactly the same as the one I have on my site. Maybe try removing the first line (DirectoryIndex...) and see if it works?
did that "removing the first line" as well, but no progress.
any suggestions?