Hi, I’m a newbie in ModxCms, trying to transpose one of my web sites inside this CMS.
I almost solved every problem I had with the exception of the following one :
I want to keep part of the old static HTML as it was originaly in a folder.
That’s because this part is FTP managed by a third part, and I don’t want
them to change their habits !
So I’d like that, for instance "www.mysite.com/mypage" goes to a ModxCms
(I did it with friendly URLs), and in the contrary "www.mysite.com/theirpage" goes
to the old "index.htm" page they have in their "theirpage" folder !
Thanks for your help
-
MODX Staff
- 10,725 Posts
If the files exist, the rewrite rules for MODx will be ignored. Should just work.
My trials gave the following results :
a- I created the folder "theirpage" inside which I put the static HTML file "index.htm"
b- When I try to reach "www.mysite.com/theirpage" with my browser, I have the Error 403 "Forbidden" message
c- When I try to reach "www.mysite.com/theirpage/index.htm", I have a dummy page given by ModxCms
What I’d like to do is to type "www.mysite.com/theirpage"
and obtain "www.mysite.com/theirpage/index.htm" on the browser screen,
just as it usually works in static web sites.
A.
I think adding a .htaccess file that disables the rewrite engine in the "theirpage" folder would work
I think that when modx sees this "www.mysite.com/theirpage" it looks for a document with the alias of ’theirpage’. The way around this is to add a weblink with the alis "theirpage" and redirect to the absolute url "www.mysite.com/theirpage/index.html". What happens with "www.mysite.com/theirpage/"?
I did the .htaccess modification and it works now - thanks !