1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How Do You Strip Cookies From A Sub Domain?

Discussion in 'Server Configuration and Hosting' started by DRE, Jun 13, 2012.

  1. DRE

    DRE Well-Known Member

    I asked my shared host and they said: 'We cannot "strip" cookies from a domain, that's a web mastering issue and not a host mastering issue.'

    I thought so because back when I was using vBulletin 4, there was an option in Admin CP to set the cookie path.

    There is no such option that I know of in Xenforo.

    My board url is http://www.8thos.com

    My host is shared hosting, lightspeed apache webserver.

    I need to strip cookies from my subdomain http://static.8thos.com

    I am asking because I'm using that subdomain for Cloudflare CDN


    My .htaccess is as follows:

    #      Mod_security can interfere with uploading of content such as attachments. If you
    #      cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #      SecFilterEngine Off
    #      SecFilterScanPOST Off
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 500 default
    <IfModule mod_rewrite.c>
      Options +FollowSymLinks
            RewriteEngine On
    RewriteRule ^/([^/]*)/([^/]*)$ /$1.php/$2
            #      If you are having problems with the rewrite rules, remove the "#" from the
            #      line that begins "RewriteBase" below. You will also have to change the path
            #      of the rewrite to reflect the path to your XenForo installation.
            #RewriteBase /xenforo
    RewriteCond %{HTTP_HOST} ^8thos\.com$ [NC]
    RewriteRule ^(.*)$ http://www.8thos.com/$1 [R=301,L]
            RewriteCond %{REQUEST_FILENAME} -f [OR]
            RewriteCond %{REQUEST_FILENAME} -l [OR]
            RewriteCond %{REQUEST_FILENAME} -d
            RewriteRule ^.*$ - [NC,L]
            RewriteRule ^(data|js|styles|install) - [NC,L]
            RewriteRule ^.*$ index.php [NC,L]
        RewriteRule ^/threads/ /forum/threads
    RewriteRule ^/forums/ /forum/forums

Share This Page