Pretty URLs and rewrite options

Permalink
Hi,

Stupidly, I'm trying to help out a friend who has chosen to no longer use his web designer/hosting provider. I'm not a web designer or developer so my knowledge is limited but I do run a small IT/MSP so have some experience but it's basic at best.

I have access to a shared hosting platform (Fasthosts) through my business so I'm trying to do him a solid and move his old site to the new hosting provider...

Firstly the original designer hasn't updated the site on many years so it was running an old version of Concrete, this gave me an issue with the new hosting provider not supporting PHP 5.x anymore.

To cut a long story short it hasn't been very straight forward and I'll list the changes between hosting environments just for reference below, I did some of the migration from the old environment to the new using my windows laptop as an intermediary step (a learning curve that was...):

OLD HOSTING:
Apache, MariaDB, PHP5.4 and Concrete 5.4

NEW HOSTING:
NGINX, MYSQL, PHP7.2 and CONCRETE 8.5.1

The good news, I've managed to get the site up and running although a little sluggish I'm not too concerned about this at the moment, the last steps for me are to enable Pretty URLS.

However, I think I might be stuck between a rock and a hard place due to limitations of the hosting provider and a change of Server platform.

The old https redirection and pretty url function was delivered via htaccess which I think is Apache specific and therefore not relevant to my new hosting environment, the alternative is to use the nginx rewrite methods but I believe that this requires the code to be saved to the config file which isn't available in the shared hosting platform.

Are there any other options to resolve this?

The limitations around both the htaccess files and conf file are listed below:
htaccess limitations by hosting provider:https://help.fasthosts.co.uk/app/answers/detail/a_id/500/~/.htaccess...
Nginx limitation by hosting provider:
https://help.fasthosts.co.uk/app/community/questions/detail/qid/724/...

Thanks in advance
Nick

View Replies: View Best Answer
IHInc replied on at Permalink Best Answer Reply
you'll need to change to apache or somehow find a way to modify nginx config. you can't do directory level directives with nginx:https://www.nginx.com/resources/wiki/start/topics/examples/likeapach...