Ludeon Forums

RimWorld => Off-Topic => Topic started by: Tynan on September 26, 2013, 12:08:04 PM

Title: Rewriting URLs
Post by: Tynan on September 26, 2013, 12:08:04 PM
So currently rimworldgame.com just redirects to ludeon.com/blog/rimworld, where it's actually hosted.

That's okay, but I think it would be better if it kept rimworldgame.com in the browser and just served the content from ludeon.com/blog/rimworld.

I'm pretty sure there's some way to do this involving some sort of htaccess magic but for the life of me, I can't figure out what it is. I've got rimworldgame.com parked with a simple redirect to ludeon.com/blog/rimworld right now.

If any of you are htaccess magicians, I'd appreciate a hand right now. Thank you!
Title: Re: Rewriting URLs
Post by: Hypolite on September 26, 2013, 12:33:23 PM
I can do that, but I need to know a little bit more.

How did you configure both domain names? Where are both sites hosted on? Same server? Same document root (the FTP folder accessed when using only the domain name)? The answer would be different for each case :)
Title: Re: Rewriting URLs
Post by: Tynan on September 26, 2013, 12:42:31 PM
Thank you! Okay, so:

ludeon.com is an addon domain of tynansylvester.com. it lives in tynansylvester_root/ludeon.com

rimworldgame.com is a parked domain set to redirect to ludeon.com/blog/rimworld

Everything is hosted on the same server. Does that tell you what you need to know? Here's a screenshot of the config utility. I can change these settings.

(http://puu.sh/4AKIO.png)
Title: Re: Rewriting URLs
Post by: Hypolite on September 26, 2013, 12:46:33 PM
I'm not sure how you can do that with your interface, but the first thing would be to remove rimworldgame.com from your parked domains and use it as a full-featured domain name.

Did you pay less for parked domains or is it just a status you can change? Would it cost you anything to change its status?
Title: Re: Rewriting URLs
Post by: Tynan on September 26, 2013, 12:54:16 PM
Nah, it's free. I can make al the subdomains I want.
Title: Re: Rewriting URLs
Post by: Tynan on September 26, 2013, 12:55:36 PM
If I made it a full featured domain name, it would have its own folder in the tree alongside ludeon.com and its own htaccess. I'm not sure how it would reach the blog page from there. It would have to go into the parent. Hmm.
Title: Re: Rewriting URLs
Post by: Hypolite on September 26, 2013, 01:04:21 PM
Once you set it up as a full-featured domain, create a .htaccess at the root folder with the following :

RewriteEngine on

RewriteRule (.*)  http://ludeon.com/blog/rimworld/$1 [L,QSA]


Tell me if it works.
Title: Re: Rewriting URLs
Post by: Tynan on September 26, 2013, 01:12:26 PM
Thank you! I'll be giving this a shot.
Title: Re: Rewriting URLs
Post by: Tynan on September 27, 2013, 12:16:54 AM
So it works as a redirect, problem is it changes the web address to ludeon.com/blog/rimworld, which is what I already have (I've been testing with another domain, worldfall.net)

I really want the URL to stay at rimworldgame.com while serving the content from ludeon.com/blog/rimworld
Title: Re: Rewriting URLs
Post by: Hypolite on September 27, 2013, 06:32:42 AM
How much time did you wait between the promotion of the parked domain to a full-featured domain? DNS changes can take up to a few hours to propagate.

For more efficient troubleshooting, I would require access to the new domain FTP. From what I understand, there will be nothing on it except the .htaccess, so I won't be able to break anything  ;)
Title: Re: Rewriting URLs
Post by: British on September 27, 2013, 10:34:55 AM
I only have one question regarding this: why is it in the "Off-topic" forum when the "General Discussion" forum is subbed "Talk about Ludeon and RimWorld." ?
Title: Re: Rewriting URLs
Post by: Yarkista on September 27, 2013, 10:42:16 AM
Quote from: British on September 27, 2013, 10:34:55 AM
I only have one question regarding this: why is it in the "Off-topic" forum when the "General Discussion" forum is subbed "Talk about Ludeon and RimWorld." ?

I think it's because this thread is about the website, maby we should get a "tech support" sub forum going.
Title: Re: Rewriting URLs
Post by: British on September 27, 2013, 10:50:17 AM
I understand what you say, but for the time being, the way I see it, the URLs are related to Ludeon and RimWorld, and everything related to Ludeon and RimWorld belong to the General Discussion forum, while everything NOT related to Ludeon or RimWorld belong to the Off-Topic forum.

And yes, I can nitpick all day long ! ;D
Title: Re: Rewriting URLs
Post by: enystrom8734 on September 27, 2013, 11:29:36 AM
Quote from: British on September 27, 2013, 10:50:17 AM
I understand what you say, but for the time being, the way I see it, the URLs are related to Ludeon and RimWorld, and everything related to Ludeon and RimWorld belong to the General Discussion forum, while everything NOT related to Ludeon or RimWorld belong to the Off-Topic forum.

And yes, I can nitpick all day long ! ;D

But URLs themselves aren't related, should the topic be split between the two? :P
Title: Re: Rewriting URLs
Post by: Yarkista on September 27, 2013, 11:57:52 AM
Quote from: enystrom8734 on September 27, 2013, 11:29:36 AM
Quote from: British on September 27, 2013, 10:50:17 AM
I understand what you say, but for the time being, the way I see it, the URLs are related to Ludeon and RimWorld, and everything related to Ludeon and RimWorld belong to the General Discussion forum, while everything NOT related to Ludeon or RimWorld belong to the Off-Topic forum.

And yes, I can nitpick all day long ! ;D

But URLs themselves aren't related, should the topic be split between the two? :P

Well, it's quite related considering it's about the website of the company.
Title: Re: Rewriting URLs
Post by: enystrom8734 on September 27, 2013, 12:08:20 PM
Quote from: Yarkista on September 27, 2013, 11:57:52 AM
Quote from: enystrom8734 on September 27, 2013, 11:29:36 AM
Quote from: British on September 27, 2013, 10:50:17 AM
I understand what you say, but for the time being, the way I see it, the URLs are related to Ludeon and RimWorld, and everything related to Ludeon and RimWorld belong to the General Discussion forum, while everything NOT related to Ludeon or RimWorld belong to the Off-Topic forum.

And yes, I can nitpick all day long ! ;D

But URLs themselves aren't related, should the topic be split between the two? :P

Well, it's quite related considering it's about the website of the company.

Joke...
............................................________
....................................,.-'"...................``~.,
.............................,.-"..................................."-.,
.........................,/...............................................":,
.....................,?......................................................,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:"........./
..............?.....__.........................................:`.........../
............./__.(....."~-,_..............................,:`........../
.........../(_...."~,_........"~,_....................,:`........_/
..........{.._$;_......"=,_......."-,_.......,.-~-,},.~";/....}
...........((.....*~_......."=-._......";,,./`..../"............../
...,,,___.`~,......"~.,....................`.....}............../
............(....`=-,,.......`........................(......;_,,-"
............/.`~,......`-...................................../
.............`~.*-,.....................................|,./.....,__
,,_..........}.>-._...................................|..............`=~-,
.....`=~-,__......`,.................................
...................`=~-,,.,...............................
................................`:,,...........................`..............__
.....................................`=-,...................,%`>--==``
........................................_..........._,-%.......`
...................................,
Title: Re: Rewriting URLs
Post by: Yarkista on September 27, 2013, 12:16:46 PM
Quote from: enystrom8734 on September 27, 2013, 12:08:20 PM
Quote from: Yarkista on September 27, 2013, 11:57:52 AM
Quote from: enystrom8734 on September 27, 2013, 11:29:36 AM
Quote from: British on September 27, 2013, 10:50:17 AM
I understand what you say, but for the time being, the way I see it, the URLs are related to Ludeon and RimWorld, and everything related to Ludeon and RimWorld belong to the General Discussion forum, while everything NOT related to Ludeon or RimWorld belong to the Off-Topic forum.

And yes, I can nitpick all day long ! ;D

But URLs themselves aren't related, should the topic be split between the two? :P

Well, it's quite related considering it's about the website of the company.

Joke...snip

I hate AC2 so much, and whoosh I guess.
Title: Re: Rewriting URLs
Post by: Tynan on September 27, 2013, 01:05:49 PM
It's a boring discussion that I don't want to clutter the main forum with.
Title: Re: Rewriting URLs
Post by: British on September 27, 2013, 02:24:48 PM
But... nothing about RimWorld is boring \o/
Title: Re: Rewriting URLs
Post by: Yarkista on September 27, 2013, 04:40:57 PM
Quote from: British on September 27, 2013, 02:24:48 PM
But... nothing about RimWorld is boring \o/


What about cacti? They're pretty boring ;)
Title: Re: Rewriting URLs
Post by: Tynan on September 27, 2013, 04:41:56 PM
Quote from: Yarkista on September 27, 2013, 04:40:57 PM
Quote from: British on September 27, 2013, 02:24:48 PM
But... nothing about RimWorld is boring \o/


What about cacti? They're pretty boring ;)

No way they're boring! They burn, sway in the wind, and can be used as cover during firefights!
Title: Re: Rewriting URLs
Post by: Yarkista on September 27, 2013, 04:47:23 PM
Quote from: Tynan on September 27, 2013, 04:41:56 PM
Quote from: Yarkista on September 27, 2013, 04:40:57 PM
Quote from: British on September 27, 2013, 02:24:48 PM
But... nothing about RimWorld is boring \o/



What about cacti? They're pretty boring ;)

No way they're boring! They burn, sway in the wind, and can be used as cover during firefights!


What about grass?
Grass..that reminds me, will drugs be in the game?

Title: Re: Rewriting URLs
Post by: Tynan on September 27, 2013, 04:48:03 PM
Quote from: Yarkista on September 27, 2013, 04:47:23 PM
Quote from: Tynan on September 27, 2013, 04:41:56 PM
Quote from: Yarkista on September 27, 2013, 04:40:57 PM
Quote from: British on September 27, 2013, 02:24:48 PM
But... nothing about RimWorld is boring \o/



What about cacti? They're pretty boring ;)

No way they're boring! They burn, sway in the wind, and can be used as cover during firefights!


What about grass?
Grass..that reminds me, will drugs be in the game?

I'm offering a drug system to the KS backers as a thing to vote for.
Title: Re: Rewriting URLs
Post by: Yarkista on September 27, 2013, 04:54:14 PM
Quote from: Tynan on September 27, 2013, 04:48:03 PM
Quote from: Yarkista on September 27, 2013, 04:47:23 PM
Quote from: Tynan on September 27, 2013, 04:41:56 PM
Quote from: Yarkista on September 27, 2013, 04:40:57 PM
Quote from: British on September 27, 2013, 02:24:48 PM
But... nothing about RimWorld is boring \o/



What about cacti? They're pretty boring ;)

No way they're boring! They burn, sway in the wind, and can be used as cover during firefights!


What about grass?
Grass..that reminds me, will drugs be in the game?

I'm offering a drug system to the KS backers as a thing to vote for.


Ah very good, gotta keep them breaking bad fans happy.

Such a  good show.
Title: Re: Rewriting URLs
Post by: Hypolite on September 27, 2013, 06:28:18 PM
Discussion about the drug system (http://ludeon.com/forums/index.php?topic=85.0) has been moved in the General forum.
Title: Re: Rewriting URLs
Post by: Tynan on September 27, 2013, 06:30:15 PM
Thank you Hypolite.
Title: Re: Rewriting URLs
Post by: Yarkista on September 27, 2013, 06:32:59 PM
Quote from: Hypolite on September 27, 2013, 06:28:18 PM
Discussion about the drug system (http://ludeon.com/forums/index.php?topic=85.0) has been moved in the General forum.

Yea thanks man, you're realy on the ball about this stuff, quite a good moderator.
Title: Re: Rewriting URLs
Post by: Hypolite on September 27, 2013, 06:36:56 PM
Why thank you, I find myself actually quite slow to move/split things around. It seems that I only perform my duties once 5 people noticed that a topic is misplaced or after 10 posts of off-topic  :-[
Title: Re: Rewriting URLs
Post by: Yarkista on September 27, 2013, 06:44:03 PM
Quote from: Hypolite on September 27, 2013, 06:36:56 PM
Why thank you, I find myself actually quite slow to move/split things around. It seems that I only perform my duties once 5 people noticed that a topic is misplaced or after 10 posts of off-topic  :-[

Heh, it's still better than many a forum i've been to.

Also I think it would be good if you had a "Moderator" title on your profile, so people can more easily identify who the mods are if they're new to the forum.
Title: Re: Rewriting URLs
Post by: Hypolite on September 27, 2013, 07:30:12 PM
I changed my title to reflect that :)
Title: Re: Rewriting URLs
Post by: Yarkista on September 27, 2013, 07:58:48 PM
Quote from: Hypolite on September 27, 2013, 07:30:12 PM
I changed my title to reflect that :)

Heh, there we go ;)
Title: Re: Rewriting URLs
Post by: Tynan on September 29, 2013, 08:45:47 PM
Quote from: Hypolite on September 27, 2013, 06:32:42 AM
How much time did you wait between the promotion of the parked domain to a full-featured domain? DNS changes can take up to a few hours to propagate.

For more efficient troubleshooting, I would require access to the new domain FTP. From what I understand, there will be nothing on it except the .htaccess, so I won't be able to break anything  ;)

Thanks for the help; I want to continue towards solving this problem in future but for now it's on the back burner.
Title: Re: Rewriting URLs
Post by: British on September 30, 2013, 03:39:17 AM
By the way, what will happen to www.rim-world.com ?
I'm asking since it's the URL used in your first-look video, and thus might have gained some traction...
Title: Re: Rewriting URLs
Post by: Tynan on September 30, 2013, 11:35:31 AM
Quote from: British on September 30, 2013, 03:39:17 AM
By the way, what will happen to www.rim-world.com ?
I'm asking since it's the URL used in your first-look video, and thus might have gained some traction...

I'll probably just make it permanently redirect to rimworldgame.com.
Title: Re: Rewriting URLs
Post by: Tony on October 24, 2013, 07:41:22 PM
I see that this is on the back burner for now, so I'll add this here for reference in case you wish to tackle it again.

To have the domain point to the page on the blog, and stay in the address bar, isn't completely achievable, due to the page being just that, a page within the blog. Because there is no existing rimworld directory for the domain to latch on to, the best you can hope for is rimworldgame.com/rimworld (or any other page name, 'buy' for example). (Adding a directory would be the easiest, but it doesn't work unfortunately.)

If you are able to try, set rimworldgame.com up as an Addon Domain, and configure the Document Root field for the path to the blog (from the screenshot, this appears to be /public_html/ludeon.com/blog/). rimworldgame.com should then find its way to the blog also.

In the .htaccess file for the blog (/public_html/ludeon.com/blog/.htaccess) set the following:

RewriteCond %{HTTP_HOST} ^(www.)?rimworldgame\.com [NC]
RewriteRule ^(/)?$ /rimworld/ [R,L]


This, hopefully, will send you to the rimworld page of the blog (rimworldgame.com/rimworld/). I'm not fully sure, but removing the R, from the square brackets should tell Apache to use a silent redirect. My testing of this proved futile though, and I added the R, to make the page re-direct. You might get lucky if you try.

It's not perfect, and the .htaccess code could do with a way to reduce errors from possible bad links or extra words stuck on the end and such, but I'm no expert at that sort of thing. (I also don't know how WordPress works, so cross your fingers it doesn't cry through the whole process.) :P
Title: Re: Rewriting URLs
Post by: Tynan on October 24, 2013, 07:45:25 PM
Thanks tony! I appreciate your helping out. In the meantime I may take a shot at your solution.

Since this seems to be such a challenge (and perhaps impossible to solve), I'm thinking I might actually just make a little page for rimworldgame.com, separate from the blog entirely. That would, of course, solve this problem. And it's going to be a static landing page anyway.
Title: Re: Rewriting URLs
Post by: Tony on October 24, 2013, 09:45:48 PM
Looking in to it I really wanted it to work, because it would be useful in many ways, especially with a large amount of people using blog software as a CMS. I guess we're not yet meant to have individual domains for every post.

Making a standalone page will be the best option for using the domain, though you would lose the slight ease of editing through the blog. But a static page just means you can save the source and upload it, make a cup of tea and call it a success. :D
Title: Re: Rewriting URLs
Post by: Tynan on October 24, 2013, 10:22:36 PM
In truth the blog isn't exactly helpful with this anyway. I always edit the post in html mode because the WYSIWIG editor trashes it.

Thanks again for the help.
Title: Re: Rewriting URLs
Post by: British on October 25, 2013, 04:51:40 AM
Speaking about the blog, you still haven't found a way to tie its entries to the forums ?
Title: Re: Rewriting URLs
Post by: AcDie on October 25, 2013, 05:45:52 AM
Quote from: British on October 25, 2013, 04:51:40 AM
Speaking about the blog, you still haven't found a way to tie its entries to the forums ?
Bridge between WP & SMF? I thought topic about .htaccess  ::)
Title: Re: Rewriting URLs
Post by: British on October 25, 2013, 07:39:45 AM
It has to do with URLs, in a very broad sense :P
Title: Re: Rewriting URLs
Post by: Tynan on October 25, 2013, 12:35:14 PM
Quote from: British on October 25, 2013, 04:51:40 AM
Speaking about the blog, you still haven't found a way to tie its entries to the forums ?

I haven't had any time to look into this. It's still on my to-do.
Title: Re: Rewriting URLs
Post by: Tony on October 25, 2013, 07:19:37 PM
Quote from: Tynan on October 25, 2013, 12:35:14 PMI haven't had any time to look into this. It's still on my to-do.
This one is easy. Installing a modification and importing the feed. The hardest part is choosing which modification to add.

Edit: This one has been updated recently, and is compatible with the version of SMF used here: http://custom.simplemachines.org/mods/index.php?mod=624
Title: Re: Rewriting URLs
Post by: Tynan on October 27, 2013, 01:24:51 AM
Quote from: Tony on October 25, 2013, 07:19:37 PM
Quote from: Tynan on October 25, 2013, 12:35:14 PMI haven't had any time to look into this. It's still on my to-do.
This one is easy. Installing a modification and importing the feed. The hardest part is choosing which modification to add.

Edit: This one has been updated recently, and is compatible with the version of SMF used here: http://custom.simplemachines.org/mods/index.php?mod=624

Again, thanks very much Tony.

..looking at this, it just looks like a way to make forum threads based on news posts. But what about actually integrating them with WP, so the comments link points right at the forums and reports the proper number of posts?
Title: Re: Rewriting URLs
Post by: Tony on October 28, 2013, 12:15:30 AM
Ahh. Hmm, a quick search gives me this: http://wordpress.org/plugins/post-to-smf-forum/ (It is for an older version of SMF though.)

I'm not sure about the Weblog posts showing the fora post count, as it doesn't mention this in the description, but it can add a link. You can then simply turn comments off on the Weblog.