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?
URL Rewriting and Different Environments
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
- pfergi42
- Joomla! Apprentice
- Posts: 23
- Joined: Thu Feb 24, 2011 12:23 am
- Location: Santa Monica, CA
- Contact:
- Ankit Mathur
- Joomla! Ace
- Posts: 1063
- Joined: Wed Jan 09, 2013 10:39 am
- Location: India
- Contact:
Re: URL Rewriting and Different Environments
Joomla 2.5 comes with "Redirector" component which helps you redirect specific links to another ones.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?
Have a look: http://www.inmotionhosting.com/support/ ... ct-manager
With Kind Regards,
Ready Bytes Software Labs
Joomla Shopping Cart: http://www.readybytes.net/paycart.html
Ready Bytes Software Labs
Joomla Shopping Cart: http://www.readybytes.net/paycart.html
-
- Joomla! Explorer
- Posts: 499
- Joined: Fri Nov 13, 2009 1:33 pm
- Contact:
Re: URL Rewriting and Different Environments
You could use a different .htaccess file for the remote server and for the local environment
http://www.conversionreview.com/ - Start improving your conversion rate with an expert review
- pfergi42
- Joomla! Apprentice
- Posts: 23
- Joined: Thu Feb 24, 2011 12:23 am
- Location: Santa Monica, CA
- Contact:
Re: URL Rewriting and Different Environments
This sounds like a simple and correct configuration. Let me give it a try.Thetjo wrote:You could use a different .htaccess file for the remote server and for the local environment
- Ankit Mathur
- Joomla! Ace
- Posts: 1063
- Joined: Wed Jan 09, 2013 10:39 am
- Location: India
- Contact:
Re: URL Rewriting and Different Environments
Have you tried it? The problem is solved or not?pfergi42 wrote:This sounds like a simple and correct configuration. Let me give it a try.Thetjo wrote:You could use a different .htaccess file for the remote server and for the local environment
With Kind Regards,
Ready Bytes Software Labs
Joomla Shopping Cart: http://www.readybytes.net/paycart.html
Ready Bytes Software Labs
Joomla Shopping Cart: http://www.readybytes.net/paycart.html
- pfergi42
- Joomla! Apprentice
- Posts: 23
- Joined: Thu Feb 24, 2011 12:23 am
- Location: Santa Monica, CA
- Contact:
Re: URL Rewriting and Different Environments
Have not tried yet... there is code written that also plays a part, not just the .htaccess file.
-
- Joomla! Fledgling
- Posts: 4
- Joined: Tue Dec 25, 2012 7:17 am
Re: URL Rewriting and Different Environments
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.