Reputation: 687
Basically, I want to host a website through a CDN. My website currently contains a few URL's with parameters, eg.
I want my website to look like the website used to look (eg. it should respond with the same page as originally when the user visits the parameter URL).
Seeing as this is a CDN host, I cannot use .htaccess etc. which is why I'm asking the question here rather than resolve it myself.
Is there any way to name the file (including the parameter) so it responds to the URL above?
EDIT: Spiders need to be able to properly crawl the content, so JS won't do the trick here.
Upvotes: 2
Views: 4031
Reputation: 2989
Try name your files exactly as URL you desire, for example articles.html?start=20
. If the CDN server is not configured to handle it and you cannot change the configuration, you are out of luck.
(I assume the CDN server is plain file hosting without any server-side scripting.)
If your URLs are not publicly known yet (so you can change them), you can use a static website generator. URLs will look different (no ?
), but it will work.
Upvotes: 3