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

Can't make htaccess work in Godaddy's Linux Shared hosting

0 votes

I don't have the first option on "URL structure for pages on your site"  enabled (no shiny "ok" near it)

I use Godaddy's Linux Shared Hosting. Not that I think it matters, but my Q&A site isn't the main, default domain on this Shared hosting account, but resides in a sub-directory below it:

MAINSITE.COM/QASITE.COM

Is has anything to do whit this?

 

I'd appreciate any help!
Regards,
Assaf
asked Jan 19, 2011 in Q2A Core by atlantis76
Still couldn't resolve this. The more pages added to the site, the more crucial this becomes. I'll appreciate your thoughts and comments.

Anyone using Godaddy: do you remember having this option enabled right from the beginning?

2 Answers

0 votes
Have you installed the .htaccess file in the subdirectory? Also do you know that the Apache configuration that GoDaddy uses allows .htaccess files to be used?
answered Feb 23, 2011 by gidgreen
1. Yes, I installed .htaccess along with the rest of Q2A package.
2. From Godaddy (quoting): "Yes, you can create an .htaccess file for your aliased domain name. "

I might just found a clue:
1. I removed .htaccess on the *main* Godaddy account folder (leaving .htaccess of Q2A untouched)
2. In my site's Q2A admin I got this message:
"The installed version of PHP was compiled without multibyte string support. Searching will be less effective for non-Roman characters."

And option #2: "/index.php/questions/123/why-do-birds-sing " was disabled

---
Does this help?
+1 vote

The solution seems to be to make change the following line in the .htaccess file that comes with Q2A:

#RewriteBase /your-sub-directory

... to ...

RewriteBase /

answered Dec 5, 2011 by gidgreen
Good! It solved my problem - even when my website is in a subdirectory.
This solution fixed the same problem for me, thanks gidgreen !