XF 1.5 Friendly Urls

CDog

New member
Hi,
I've installed xenforo in a subdomain
testforum.mysite.com

The folder of the install is
testforum.mysite.com/maForum

Changed the htaccess.txt to .htaccess
changed the
#RewriteBase /xenforo
RewriteBase /maForum

the friendly urls work with www.mysite.com/maForum
but not testforum.mysite.com. (get 500 server error, and server logs empty)

My host is godaddy and modrewrite with allow (according to their docs) is enabled.

Does this mean i have to make more changes in the htaccess file, if so could someone advise what I need to do to get friendly urls to work with the subdomain.

Thanks a lot
c
 
Should I add these or use them to replace the conditions in the standard .htaccess file.
- whats standard in the .htaccess
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

----
- from point 19
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Code:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Code:
RewriteCond %{HTTP_HOST} !^www.example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L,QSA]
 
sorry draggin my feet here because i dont fully understand. I have some regex experience but only on a sort of need to know basis.

I tried this after the default .htaccess conditions.
I get an internal server error for the subdomain and www.mysite.com/maForum/forums/etc still works
When that didnt work I put it before the default conditions and that generates an loop error.
I cleared browser history and tried both again but still get the same errors,
any other advice?

RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule ^(.*)$ http://testforum.mysite.com/$1 [R=301,L]
#Code:
RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]
RewriteRule ^(.*)$ http://testforum.mysite.com/$1 [R=301,L]
#Code:
RewriteCond %{HTTP_HOST} !^www.mysite\.com$ [NC]
RewriteRule ^(.*)$ http://testforum.mysite.com/$1 [R=301,L,QSA]
 
Last edited:
Are you adding all of those rules?

You only need to add one.

Various examples are provided in the FAQ as servers are different and what works on one server may not work on another.

Note that all servers are different and you may have to try several variations until you find one which works.
Any custom rewrite rules must come before the XenForo rewrite rules.
 
ok, one at a time, I still get the internal server error. :cry:
I tried them with 'rewrite base' commented and uncommented.
I cleard browser data regularly.
I checked my subdomain is a standard godaddy subdomain 'installation' if you can call it an installation. You create a directory and then do whatever they ask you to do in what they call the Ahost file. Its set up like my other subdomains.
Any other advice?
Thank you
C
 
You would need to check the serve error log to see what's throwing the error.

You could also try contacting your host for support.
Perhaps they have dealt with rewrites of this nature before and are aware of what needs to be done to get them working.
 
Back
Top Bottom