Htaccess



  • Hi,

    How do I change the htaccess file to use jabbercam on http://mydomain.com and http://www.mydomain.com?

    It works fine on www. but not without, I have read a few posts about this but dont really understand what I need to change in the regex to cover the without www.

    Thanks



  • The reason of the .htaccess file is to rewrite all non www URLs to www
    in case you have $WEB_SERVICE_URL set to "http://www.your-domain…" in your config.php and you are accesing the RVC powered site without www, the script won't work. This is handled by the .htaccess file that rewrites all non www URLs to www

    # require www prefix for all urls of ANY domain & for parked domains by Yatko.com
    
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.               [NC]
    RewriteCond %{HTTP_HOST} ^([^.]+\.[a-z]{2,6})$ [NC]
    RewriteRule ^(.*)$       http://www.%1/$1      [R=301,L]
    
    

    in case you wish to use without www, just change the $WEB_SERVICE_URL to non www and the .htaccess to remove the www



  • RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.videosoftware.pro$ [NC]
    RewriteRule ^(.*)$ http://videosoftware.pro/$1 [R=301,L]
    
    ```*replace videosoftware.pro with your domain
    
    * * *
    
    If it is a sub-domain, you may consider deleting the .htaccess file

 

Looks like your connection to H7 was lost, please wait while we try to reconnect.