Good advice :-)M--(Unsigned mail from my phone)
-------- Original message --------From: ohaya <oh...@yahoo.com.INVALID> Date: 
9/2/25  03:30  (GMT+10:00) To: users@httpd.apache.org Subject: Re: 
[users@httpd] Redirection confusion 
        Slightly off-topic:  You mentioned you had tried AI and their suggested 
solutions didn't work.  FYI, I had been posting a problem with Apache and a 
problem with "undefined symbol".  Thankfully, I eventually got information that 
let me get past that from USERS (real people) on this mailing list, but I had 
also gotten an AI response from Google AI during one of the Google searches I 
did during my research, that had filled me with hope (it said there was an 
"optional" parameter on the Apache LoadModule directive), but when I tried 
doing that, I got an error from Apache saying that LoadModule only took the 
expected 2 parameters.So moral of the story:  Be skeptical about AI responses 
;)!!Jim
        
        
            
                
                
                        On Saturday, February 8, 2025 at 05:32:10 AM EST, Mike 
Dewhirst <mi...@dewhirst.com.au> wrote:
                    
                    
                    
                
                
                

  

    
  
  
    I have a number of domain names which I want to redirect in order to
    have a single search engine site.
    
    mysite.com
    mysite.com.au
    mysite.au
    www.mysite.com
    www.mysite.com.au
    www.mysite.au
    
    I want mysite.com to be the single site for seo purposes. I want any
    of the above to force redirection to mysite.com and not display the
    user-entered domain.
    
    Not only have I researched this via the docs I have asked three
    different AIs and none of their solutions work as desired despite
    seemingly complying with the docs. I have to accept the blame for
    the prompts.
    
    Here is my best guess at a proper redirection for all domain names
    ...
    
    files: mysite.com.conf, www.mysite.com.conf, mysite.com.au.conf,
    www.mysite.com.au.conf, mysite.au.conf, www.mysite.au.conf
    <VirtualHost *:80>
        ServerName mysite.com
        ServerAlias www.mysite.com mysite.com.au www.mysite.com.au
    mysite.au www.mysite.au
        RewriteEngine On
        RewriteRule ^(.*)$ https://mysite.com/$1 [R=301,L]
        Redirect permanent / https://mysite.com/
    </VirtualHost>
    end file mysite.com.au
    
    All have been enabled (a2ensite ...) on Ubuntu 2024.04 LTS server
    
    The main conf file for mysite.com is mysite.com-le-ssl.conf and it
    has the *:443 configuration.
    
    Many thanks for any education/clarification in layman terms.
    
    Cheers
    
    Mike
  


            
        

Reply via email to