Page 1 of 1

URL Rewriting and Different Environments

Posted: Mon Jan 14, 2013 10:54 pm
by pfergi42
I have implemented some URL rewriting using apache and the .htaccess file.

How have others done this when they have local development environment, and then also a staging and/or production environment?

Does anyone use git and also do this?

Re: URL Rewriting and Different Environments

Posted: Tue Jan 15, 2013 1:54 am
by Ankit Mathur
pfergi42 wrote:I have implemented some URL rewriting using apache and the .htaccess file.

How have others done this when they have local development environment, and then also a staging and/or production environment?

Does anyone use git and also do this?
Joomla 2.5 comes with "Redirector" component which helps you redirect specific links to another ones.
Have a look: http://www.inmotionhosting.com/support/ ... ct-manager

Re: URL Rewriting and Different Environments

Posted: Mon Jan 21, 2013 3:13 pm
by Thetjo
You could use a different .htaccess file for the remote server and for the local environment

Re: URL Rewriting and Different Environments

Posted: Wed Jan 23, 2013 4:53 pm
by pfergi42
Thetjo wrote:You could use a different .htaccess file for the remote server and for the local environment
This sounds like a simple and correct configuration. Let me give it a try.

Re: URL Rewriting and Different Environments

Posted: Tue Feb 05, 2013 9:50 am
by Ankit Mathur
pfergi42 wrote:
Thetjo wrote:You could use a different .htaccess file for the remote server and for the local environment
This sounds like a simple and correct configuration. Let me give it a try.
Have you tried it? The problem is solved or not?

Re: URL Rewriting and Different Environments

Posted: Mon Feb 11, 2013 8:36 pm
by pfergi42
Have not tried yet... there is code written that also plays a part, not just the .htaccess file.

Re: URL Rewriting and Different Environments

Posted: Mon Feb 18, 2013 11:56 am
by Shapewear
Joomla comes with htaccess.txt, and the option to rewrite urls. So you have to first change the htaccess.txt file to .htaccess on the server, then login and in the configuration settings change SEF to on, and use .htaccess to on.