Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.2k views
in Q2A Core by

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.

 

2 Answers

0 votes
by

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.

by
When I right click on the OK box to open frame in new tab, it shows OK - means this is working as expected.
But when I right click on the blank space for open 1.  /123/why-do-birds-sing (requires htaccess file)
I see no nothing, OK was expected rite. Instead I see: "500 Internal Server Error"

Details: The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



What shall I do further? Hoping for your help.
by
GoDaddy replied me for this question like this:

If you have added clean URL to your .htaccess file and are now getting the 500 error there is a scripting error that you have entered that is causing the 500 error redirect.  You will need to check your script to make sure that it is properly configured.  You can confirm that it is scripting by disabling the .htaccess and seeing that your sites will show up.

But I still can't configure it out correctly, please help me.
by
"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?
by
did that "removing the first line" as well, but no progress.
any suggestions?
...