hi

how i redirect from .org to .com

ex:

my page is www.aaaa.com

i want when user write

www.aaaa.org

then it will redirect automaticly to

www.aaaa.com


:)

Dani AI

Generated

As and pointed out, you must control the .org domain before you can redirect it. Once you own it there are a few solid approaches — registrar/web‑host forwarding (easy), a server‑level redirect (fast and SEO‑friendly), or a server‑side script (works but less efficient). ’s PHP idea is valid if you host the .org, but a 301 at the webserver level is usually best for search engines and performance (see MDN: HTTP redirections).

If you host the .org, prefer a server redirect. Simple examples:

# Apache (.htaccess)
Redirect 301 / http://www.aaaa.com/
# nginx (server block)
server {
    listen 80;
    server_name aaaa.org www.aaaa.org;
    return 301 https://www.aaaa.com$request_uri;
}

For Apache’s Redirect directive and options see Apache Redirect directive.

Key practical notes and troubleshooting:

  • Use a 301 (permanent) for SEO. Avoid framed/masked forwarding — search engines won’t treat it as a true redirect.
  • If visitors may use HTTPS on .org, the .org must have a valid certificate (otherwise browsers show a security error). Free certs are available from providers such as Let’s Encrypt.
  • Test with command line tools (for example, inspect headers with a HEAD request) and remember browsers cache 301s — clear cache when testing.
  • Watch for redirect loops and ensure both the naked domain and the www variant are handled.
  • If you use PHP, make sure headers are sent before any output and terminate the script after sending the redirect.

These points build on the forum replies and address common pitfalls so the redirect works cleanly for users and search engines.

Recommended Answers

All 6 Replies

do you own this .org domain?

noo

:D

ya, you need to own that domain before you can do anything with it.

ok , after i own it

how i can redirect ??

Generally your registrar will have a free redirect service to redirect it for you or you can host the domain and apply one of the methods mentioned at these locations:

PHP Redirection

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.