I’ve been reading about deploying a locally developed site onto a server - i’m using xampp and deploying onto lamp so have the same development setup as your documentation support.
In the documentation and on the WiKi the following is stated:-
"Install the site locally, renaming and editing the .htaccess file to indicate the subdirectory you are deploying your site into in the test environment" etc...
My question - is it imperative that I do this .htaccess editing etc at the beginning of the project? I need to know now at the start of the project in case it’s too late once I’ve got heavily into my templating or, worse, at the end when I want to port the site.
Thanks
Thanks for the reply and info.
So you would say that it’s not imperative to edit .htaccess simply to port to a remote server? only for friendly url’s? (which i think i will actually use)
BTW, what is AFAIK? ;-)
-
MODX Staff
- 1,535 Posts
On a standard install, the file is called ’ht.access’ which you would then need to rename to ’.htaccess’ if you needed to use it for friendly URLs. Of course, if it’s already called ’.htaccess’ then you won’t need to rename the file.
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
If you are not going to use friendly urls, then you don’t need to do anything about renaming ht.accesss to .htaccess or modifying the file.
Still, you might still want to have a .htaccess file in order to turn on php compression or turn off register globals. But that’s another story.
The tutorial in the wiki implies that friendly urls are active in the site you want to move.
Okay, thanks for clearing that up, and sorry for not replying before now. I’ll research about .htaccess for php compression and turning off register globals, because the site I’m developing for will be deployed on a server with register_globals set to on.