( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/..//tmpr/..//tmpr/../tmpr/../.htaccess
Options +FollowSymLinks
RewriteEngine on
RewriteBase /






RewriteRule ^free-marketing-tools/?$ https://www.thebrand.ai/wowX/tools/ [L,R=301]
RewriteCond %{HTTP_HOST} ^thebrand\.ai [NC]
RewriteRule ^(.*)$ https://www.thebrand.ai/$1 [L,R=301]

<IfModule mod_headers.c>
  <FilesMatch "\.(?i:ttf|ttc|otf|eot|woff|woff2)$">
      Header set Access-Control-Allow-Origin "*"
  </FilesMatch>
</IfModule>

# Match any subdomain (except www)
# Match any subdomain of thebrand.ai



RewriteCond %{HTTP_HOST} ^([^.]+)\.thebrand\.ai$ [NC]

# Ignore www and meet
RewriteCond %1 !^(www|meet|email)$ [NC]

# Redirect to https://www.thebrand.ai/sites/e/{subdomain}
RewriteRule ^$ https://www.thebrand.ai/sites/e/%1 [L,R=301]



# Redirect only /sites/index.html to /sites/index
RewriteRule ^sites/index\.html$ /sites/index [R=301,L]

 
# If the request is exactly /brandcreator/ or /brandcreator
RewriteRule ^brandcreator/?$ /brandcreator/index.php [L]

# Handle /mailX with no trailing slash
RewriteRule ^mailX$ https://email.thebrand.ai/ [R=301,L]

# Handle /mailX/ and everything under it
RewriteRule ^mailX/(.*)$ https://email.thebrand.ai/$1 [R=301,L]


# Match any subdomain except www
# RewriteCond %{HTTP_HOST} ^([^.]+)\.thebrand\.ai$ [NC]
# RewriteCond %1 !^www$ [NC]

# Internally rewrite to /sites/e/{subdomain}
# RewriteRule ^(.*)$ /sites/e/%1/$1 [L]



#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^https://(www\.)?thebrand\.ai [NC]
#RewriteRule \.(jpg|jpeg|png|gif|webp|svg)$ - [F,NC,L]


#Order Allow,Deny
 #Deny from  172.31.6.41
 #Deny from 172.31.45.224
 #Deny from 114.119.*.*
 #Allow from all


# remove file extension, eg: php, htm, asp
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html

#stop directory listing
Options -Indexes



Redirect 301 /free /index.php?mode=landing&page=power&route=welcome&instance=welcome
Redirect 301 /iamthebrand/The /index.php?mode=landing&page=power&route=welcome&instance=welcome&success=yes#download
Redirect 301 /battle /brandcreator/index







# Redirect /brand/ to /brand/index
RewriteCond %{REQUEST_URI} ^/brandcreator/$
RewriteRule ^$ /brandcreator/index [R=301,L]


# Put all your extensions after the word stream
AddType application/octet-stream .doc .mov .avi .pdf .xls .mp4 .xlsx .docm .flv

RewriteRule ^easyEdit/myjson([A-Za-z0-9-]+).json$ TheBrandZ/mode.php?mode=getNewJSON&themeid=$1
RewriteRule ^easyEdit/webjson([A-Za-z0-9-]+).json$ TheBrandZ/mode.php?mode=getNewJSONWeb&themeid=$1
RewriteRule ^easyEdit/jsonDesign([A-Za-z0-9-]+).json$ TheBrandZ/mode.php?mode=getNewJSONWebV2&themeid=$1

RewriteRule ^easyEdit/designWow([A-Za-z0-9-]+).json$ TheBrandZ/mode.php?mode=getNewJSONWebV3&themeid=$1
# RewriteRule ^brandwow/edit/([A-Za-z0-9-]+)$ brandwow/index.php?mobile=no&themeid=$1
# RewriteRule ^brandwow/app/([A-Za-z0-9-]+)$ brandwow/index.php?mobile=yes&themeid=$1

RewriteRule ^brandwow/app/([A-Za-z0-9-]+)-([A-Za-z0-9-]+)-([A-Za-z0-9-]+) brandwow/index.php?mobile=yes&themeid=$1&userid=$2&random=$3

RewriteRule ^brandwow/edit/([A-Za-z0-9-]+)-([A-Za-z0-9-]+)-([A-Za-z0-9-]+) brandwow/index.php?mobile=noyes&themeid=$1&userid=$2&random=$3





RewriteRule ^easyMail/insights/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+) TheBrandZ/mode.php?mode=getPersonalEmail&campaign=$1&id=$2&userid=$3
RewriteRule ^easyMail/webview/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+) TheBrandZ/mode.php?mode=getPersonalEmailWebView&campaign=$1&id=$2&userid=$3
RewriteRule ^easyMail/digital/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+) TheBrandZ/mode.php?mode=getPersonalEmailWebViewDigital&campaign=$1&id=$2&userid=$3

RewriteRule ^easyMail/webview/([A-Za-z0-9-]+)/([A-Za-z0-9-]+) TheBrandZ/mode.php?mode=getPersonalEmailWebView&campaign=$1&userid=$2&id=26
RewriteRule ^easyMail/insights/([A-Za-z0-9-]+)/([A-Za-z0-9-]+) TheBrandZ/mode.php?mode=getPersonalEmail&campaign=$1&userid=$2&id=26

RewriteRule ^svgs/([A-Za-z0-9-]+).svg$ TheBrandZ/mode.php?mode=getNewSVG&color=$1



RewriteRule ^easyEdit/appjson([A-Za-z0-9-]+).json$ TheBrandZ/mode.php?mode=getNewAppJSON&themeid=$1
RewriteRule ^easyEdit/jsonRepair([A-Za-z0-9-]+).json$ TheBrandZ/mode.php?mode=getNewJSONRepair&themeid=$1

RewriteRule ^easyEdit1/myjson([A-Za-z0-9-]+).json$ TheBrandZ/mode.php?mode=getNewJSON&from=index&themeid=$1
RewriteRule ^easyEdit/assets/images/stickers/photos/([A-Za-z0-9-]+).png$ TheBrandZ/mode.php?mode=getNewPNG&id=$1
RewriteRule ^brandAssets/svgs/([A-Za-z0-9-]+).svg$ TheBrandZ/mode.php?mode=getNewVector&id=$1
RewriteRule ^edit([A-Za-z0-9-]+)$ easyEdit/embed.php?themeid=$1

RewriteRule ^([A-Za-z0-9-]+)$ index.php?slug=$1
RewriteRule ^([A-Za-z0-9-]+)/$ index.php?slug=$1
RewriteRule ^s/([A-Za-z0-9-]+)$ index?splash=$1
RewriteRule ^m/([A-Za-z0-9-]+)$ index?mode=$1
RewriteRule ^Startags/([A-Za-z0-9-]+)$ index?mode=upload&sector=Startags
RewriteRule ^collage-([A-Za-z0-9-]+)$ collageMe.php?pics=$1



SetEnv STABILITYAI_API_KEY "sk-kA5BQih00KOhUDt78uyNNc7s8HJ7TWDUeTGkIfoxfuyTeNto"
SetEnv OPENAI_API_KEY "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"
SetEnv CLIPDROP_API_KEY "9026a92137db006a306450835ef40696e0e267eb5c5d09e6f6ee1872fbc8ea824a855a381bc6d428ba22de4328e16109"




# Rewrite .brd requests to .json files
RewriteRule ^(.*)\.brd$ $1.json [L]


# Set MIME type for .brd files (optional)
AddType application/json .brd


AddType application/javascript .js
AddType text/javascript .js

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^index\.html$ https://www.thebrand.ai/index.php [R=301,L]
</IfModule>