php - how to stop redirecting from subdomain to primary domain? -


i have website- http://bulletfootball.com/ , have affiliates partners, sending me visitors site social media sites, example: ao.bulletfootball.com 1 of affiliate partner's subdomain, made subdomain's hosting destination same primary domain subdomain can everything(content,design etc.) primary domain. create subdomain affiliate partners because i'd track how views , ads click getting affiliate partners.

now problem is, when users go site subdomain ao.bulletfootball.com when click on link/posts/categories redirect primary domain.

there example wanted, @ site- thecrazyfeed.com it's primary domain. when visit site subdomain sm.thecrazyfeed.com click on link/posts/categories links coming subdomain, want site.

here .htaccess file:

# begin w3tc browser cache <ifmodule mod_deflate.c>     <ifmodule mod_headers.c>         header append vary user-agent env=!dont-vary </ifmodule> addoutputfilterbytype deflate text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x- icon application/json     <ifmodule mod_mime.c>         # deflate extension         addoutputfilter deflate js css htm html xml     </ifmodule> </ifmodule> # end w3tc browser cache # begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule>  # end wordpress 

thanks in advance :)

i believe problem not redirection, in way links rendered. links include domain, example http://bulletfootball.com/category/league/, when should have links without domain. example, previous link should /category/league/.

this way, links refer domain page downloaded, no matter domain is.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -