NYCPHP Meetup

NYPHP.org

[joomla] Using www in URL

Donna Marie Vincent donnamarievincent at yahoo.com
Tue Aug 19 11:20:12 EDT 2008


Dan,

I did this in /public_html/.htaccess:

RewriteEngine on
RewriteCond %{http_host} ^domain\.com [nc]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,nc,L]

and it worked in both J1.5 and J1.0 (I don't see how the Joomla version would make a difference).

Did you have "RewriteEngine on"?




On Mon, Aug 18, 2008 at 6:20 PM, Dan <dan at muchospanish.com> wrote:
> Thanks, Mitch, but how do I change it to use "www" which I prefer? Also, how
> do I have Apache re-direct? Is it in the .htaccess file? By mistake I posted
> my problem this morning in the 1.5 forum and someone said to do this:
>
> # Rule for duplicate content removal : domain.com vs wwwdomain.com
>
> RewriteCond %{HTTP_HOST} ^www.muchospanish\.com [NC]
> RewriteRule (.*) http://muchospanish.com/$1 [R=301,L,NC]
>
> Unfortunately, it doesn't work in the 1.0.x version.
>
> Thanks again.
>
> Dan
>
> On Aug 18, 2008, at 5:37 PM, Mitch Pirtle wrote:
>
>> Hey Dan,
>>
>> What you need to do is decide which subdomain will be the "one true
>> one" and tell apache to redirect the other to it. Some people for
>> whatever reason are totally hating on our venerable "www" subdomain,
>> so they set up the www.whatever.com to redirect to whatever.com. You
>> can do the opposite if you are emotionally attached to www.
>>
>> -- Mitch
>>
>> On Mon, Aug 18, 2008 at 5:08 PM, Dan <dan at muchospanish.com> wrote:
>>>
>>> Hi, everyone
>>> My site loads http://muchospanish.com but not http://www.muchospanish.com
>>> By
>>> the way, I'm using Joomla 1.0.x
>>> Thanks.
>>> Dan
>>> _______________________________________________
>>> New York PHP SIG: Joomla! Mailing List
>>> http://lists.nyphp.org/mailman/listinfo/joomla
>>>
>>> NYPHPCon 2006 Presentations Online
>>> http://www.nyphpcon.com
>>>
>>> Show Your Participation in New York PHP
>>> http://www.nyphp.org/show_participation.php
>>>
>> _______________________________________________
>> New York PHP SIG: Joomla! Mailing List
>> http://lists.nyphp.org/mailman/listinfo/joomla
>>
>> NYPHPCon 2006 Presentations Online
>> http://www.nyphpcon.com
>>
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>>
>
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
_______________________________________________
New York PHP SIG: Joomla! Mailing List
http://lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php




More information about the Joomla mailing list