URL Rewriting and Different Environments

Discuss Search Engine Optimization in relation to Joomla! 2.5. This forum will also have discussions on SEF/SEO Joomla! 2.5 extensions.

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.
Locked
User avatar
pfergi42
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Thu Feb 24, 2011 12:23 am
Location: Santa Monica, CA
Contact:

URL Rewriting and Different Environments

Post by pfergi42 » Mon Jan 14, 2013 10:54 pm

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?
Our mission is to build a Tennis Ladder in every city.

http://tennisladders.net

User avatar
Ankit Mathur
Joomla! Ace
Joomla! Ace
Posts: 1063
Joined: Wed Jan 09, 2013 10:39 am
Location: India
Contact:

Re: URL Rewriting and Different Environments

Post by Ankit Mathur » Tue Jan 15, 2013 1:54 am

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
With Kind Regards,
Ready Bytes Software Labs
Joomla Shopping Cart: http://www.readybytes.net/paycart.html

Thetjo
Joomla! Explorer
Joomla! Explorer
Posts: 499
Joined: Fri Nov 13, 2009 1:33 pm
Contact:

Re: URL Rewriting and Different Environments

Post by Thetjo » Mon Jan 21, 2013 3:13 pm

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

User avatar
pfergi42
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Thu Feb 24, 2011 12:23 am
Location: Santa Monica, CA
Contact:

Re: URL Rewriting and Different Environments

Post by pfergi42 » Wed Jan 23, 2013 4:53 pm

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.
Our mission is to build a Tennis Ladder in every city.

http://tennisladders.net

User avatar
Ankit Mathur
Joomla! Ace
Joomla! Ace
Posts: 1063
Joined: Wed Jan 09, 2013 10:39 am
Location: India
Contact:

Re: URL Rewriting and Different Environments

Post by Ankit Mathur » Tue Feb 05, 2013 9:50 am

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?
With Kind Regards,
Ready Bytes Software Labs
Joomla Shopping Cart: http://www.readybytes.net/paycart.html

User avatar
pfergi42
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Thu Feb 24, 2011 12:23 am
Location: Santa Monica, CA
Contact:

Re: URL Rewriting and Different Environments

Post by pfergi42 » Mon Feb 11, 2013 8:36 pm

Have not tried yet... there is code written that also plays a part, not just the .htaccess file.
Our mission is to build a Tennis Ladder in every city.

http://tennisladders.net

Shapewear
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Dec 25, 2012 7:17 am

Re: URL Rewriting and Different Environments

Post by Shapewear » Mon Feb 18, 2013 11:56 am

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.


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 2.5”