[joomla] Using www in URL
Dan
dan at muchospanish.com
Tue Aug 19 15:37:02 EDT 2008
Hi, Donna, Mitch
I've tried both ways without luck.
Donna, I do have RewriteEngine On, but when I add your lines, neither
loads, with or without "www"
Mitch, I put your lines in my configuration.php file, yes? But
nothing loads...
Dan
On Aug 19, 2008, at 12:34 PM, Donna Marie Vincent wrote:
> In your .htaccess file, search for "RewriteEngine" and see if it
> says "on" or "off" next to it. If it has a "#" in front of it,
> delete that. So, if you see this:
>
> # RewriteEngine on
>
> change it to:
>
> RewriteEngine on
>
> Or if you see:
>
> RewriteEngine off
>
> Change it to
>
> RewriteEngine on
>
>
> If you don't find it in the file at all, then just type it in:
>
> RewriteEngine on
> RewriteCond %{http_host} ^muchospanish\.com [nc]
> RewriteRule ^(.*)$ http://www.muchospanish.com/$1 [R=permanent,nc,L]
>
>
>
>
>
> ----- Original Message ----
> From: Dan <dan at muchospanish.com>
> To: NYPHP SIG: Joomla <joomla at lists.nyphp.org>
> Sent: Tuesday, August 19, 2008 12:12:11 PM
> Subject: Re: [joomla] Using www in URL
>
> How do I see if I have the rewrite engine on?
>
> Dan
>
>
>
> On Aug 19, 2008, at 11:20 AM, Donna Marie Vincent
> <donnamarievincent at yahoo.com
>> wrote:
>
>> 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
>>
>> _______________________________________________
>> 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