hi guys, i just create a new subdomain (cristi.myweb.com) but when i type that subdomain redirect's me automaticly to folder where the subomain it's.. (www.myweb.com/cristi) i don't wana this how to repair this force redirect?

Dani AI

Generated

A quick checklist to diagnose why a subdomain shows the site under a folder path instead of staying at the subdomain. As described, the symptom is an immediate redirect; that means something along the path (DNS/host, web server, or the app itself) is issuing a redirect. Several replies here touched on file location and hosting settings — those are relevant, but start by proving where the redirect happens.

Use a couple of quick tests to capture the redirect and DNS mapping:

curl -I http://sub.example.com
dig +short sub.example.com

The curl header will show a 301/302 and a Location: value if an HTTP redirect is happening. dig (or nslookup) shows whether the subdomain is a CNAME/A record pointing at the parent domain or elsewhere.

Common causes and targeted fixes:

  • If the HTTP response is a redirect (Location header points to the folder), check for redirect rules in server config or in any htaccess-like files. Temporarily disable/rename that file to see if behavior changes.
  • If the redirect only happens after a full page load, check the site application (CMS or index file) for a configured site URL that points to the domain+folder and update it.
  • If DNS shows a CNAME to the root domain and the root has forwarding or a catch-all redirect, remove the forwarding or create a proper A/CNAME for the subdomain so it resolves independently.
  • Check hosting control-panel settings for domain forwarding or alias/parked domain options that can force a redirect.

Note about caching: 301 responses are cached by browsers and proxies. Test in a private window or with curl after fixing. As , and suggested, verify file placement and panel settings — but gather the curl/dig output first, then share those results with the host if you need support.

Recommended Answers

All 8 Replies

Is that the actual address?

Can we see the real url or is it secret?

dosen't matter my url, can you help me or not?

No

Where have you placed the file is it outside public_html

Create subdomain with the directory as, public_html/subdomain this will work for you and will not redirect.

Check your cpanel options under subdomain menu. upload website in public_html/cristi. Then try to open the subdomain. if the problem still exists contact your hosting provider.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.