Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


timmmay

20574 posts

Uber Geek

Trusted
Lifetime subscriber

#173417 22-May-2015 11:42
Send private message

I have a tricky situation. I'm moving a website onto a hosted service, and this hosted service is a bit limited, in that not all the current resources can live on the main domain.

example.com     : served by new hosting platform
example.com/blog   : served by new hosting platform
example.com/slideshows   ->   subdomain.example.com/slideshows   : redirect to new subdomain on existing hosting platform
example.com/downloads   ->   subdomain.example.com/downloads  : redirect to new subdomain on existing hosting platform
example.com/store    -> store.example.com    : redirect to new subdomain on existing hosting platform

Unfortunately the new hosting platform doesn't support redirects, so any redirection has to be done before it hits the new platform. I considered DNS, but DNS works at the host name/IP level, not at the directory level. CloudFlare page rules are the only thing I can think of, but at $20/month for 20 page rules it's quite expensive. 3 rules is free, of course, which might juuuuust be enough.

Are there any other smart DNS providers that have the redirection facility that are reasonably priced?

Create new topic
timmmay

20574 posts

Uber Geek

Trusted
Lifetime subscriber

  #1310104 22-May-2015 19:47
Send private message

Anyone? I'm considering a prod deployment where I'm putting the CloudFlare CDN in front of a server that's on AWS CloudFront, using CloudFlare as a proxy for its page rules. The person who runs the new hosting platform is calling my plan "inelegant", which is likely true, but given his platform doesn't support 301 redirects properly (you can redirect files, but not folders) I'd need 19,000 redirect rules for what I'm trying to achieve.

Is putting CloudFlare in front of CloudFront totally insane? They'll be connected by a super high bandwidth connection so it's probably fine, but it's not an ideal architecture by any means. It's all because the new platform doesn't let me do .htaccess rules.



richms
28168 posts

Uber Geek

Trusted
Lifetime subscriber

  #1310160 22-May-2015 21:32
Send private message

Then your new platform is rubbish. Seen this done all the time with the rewrite thing in Apache and I think there was a windows equivilant.

Are you able to put a 404 error page in for the site that is a php or something to make the redirect for you?




Richard rich.ms

timmmay

20574 posts

Uber Geek

Trusted
Lifetime subscriber

  #1310176 22-May-2015 21:40
Send private message

The reason given is security and development time. Agree that the new platform has limitations, though they won't matter to 95% of people. It's not for me, it's for a customer. I personally require more flexibility and wouldn't host with them.

You can't put up php pages. You can't put up html pages in specific locations, other than by creating pages in the CMS that happen to meet that URL. You can't write htaccess redirect rules. Their 301 redirect options are severely limited. Support is fast, but brief and not overly helpful. If you want a basic website that's as fast as anything on the net with top notch SEO they're actually pretty great, but if you want to host anything else, or do anything even slightly customised, forget it.

Though let's ignore all that. Can anyone think of a good way to work around the technical limitations of the platform.



richms
28168 posts

Uber Geek

Trusted
Lifetime subscriber

  #1310187 22-May-2015 21:43
Send private message

If you cant upload your own html over FTP or SCP then no, cant suggest anything.

Sounds like its a cost sensitive customer, so perhaps just cutting the losses now and saying no is a better idea?




Richard rich.ms

timmmay

20574 posts

Uber Geek

Trusted
Lifetime subscriber

  #1310306 23-May-2015 09:18
Send private message

Customer isn't particularly cost sensitive. He wants to use this new platform, and other than redirects and lack of flexibility it is a good platform. It's just this customer has requirements that don't match with its capabilities.

roobarb
653 posts

Ultimate Geek

Trusted

  #1310318 23-May-2015 09:45
Send private message

timmmay: Customer isn't particularly cost sensitive. It's just this customer has requirements that don't match with its capabilities.


Nice hammer, except I need a screwdriver!

Can you make your subdomain.example.com the prime website and redirect to example.com?


itxtme
2102 posts

Uber Geek


  #1310321 23-May-2015 10:04
Send private message

Hmm with the information given its hard to consider every redirection option.  I am also confused by the possible need for 19,000 redirects if the end goal from is to redirect the site user to 1 of 3  subdomains.  What kind of injection does the CMS support, no JS I take it?

 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
timmmay

20574 posts

Uber Geek

Trusted
Lifetime subscriber

  #1310323 23-May-2015 10:11
Send private message

roobarb: Nice hammer, except I need a screwdriver!

Can you make your subdomain.example.com the prime website and redirect to example.com?



Unsure what you mean here. The main website is on the root of the domain. I could keep the DNS pointing there so the slideshows continue to work, and manually redirect the root of the domain to the new host, but that would reduce performance and SEO.

itxtme: Hmm with the information given its hard to consider every redirection option.  I am also confused by the possible need for 19,000 redirects if the end goal from is to redirect the site user to 1 of 3  subdomains.  What kind of injection does the CMS support, no JS I take it?


What other information would you like?

The reason for the huge number of redirects is because there's a blogger blog that displays images on the domain. The new website platform doesn't support redirects for directories, just files, and there are many thousands of images being used.

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.