MyBB Community Forums

Full Version: Problem with Friendly URLs when moved to another server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I've moved my forum from my own server to another. I had to change domain NS record.
Now got problem with Friendly URLs.

The index page of forum is working well, but all what is related with friendly urls cause errors.
When I want to see the topic:
http://www.pcmod.pl/thread-180-lastpost.html

There is error:
Not Found
The requested URL /www/www.pcmod.pl/showthread.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

So its requesting:
http://www.pcmod.pl/www/www.pcmod.pl/showthread.php
instead of
http://www.pcmod.pl/showthread.php

My question is why the .htaccess or something else adds
/www/www.pcmod.pl
before showthread?
What I need to change in settings or manually?
Have you added anything else to your .htaccess?? If not, turn SEF URLs off, redownload the MyBB htaccess.txt, rename it to .htaccess, and turn SEF URLs on again.
No, I dont.
I've replaced old .htaccess with a new one and its still the same problem.

I've noticed when I am opening forum with http://pcmod.pl instead of http://www.pcmod.pl .htaccess adds unecessary:
/www/pcmod.pl
So its like servername variable.

--------------FIX------------
On some servers you had to add on the beginning of .htaccess:
 RewriteBase / 
... beacuse they use virtual user home directory paths.