I want to redirect my subdomain
http://xyz.domain.com at http://domain.com
and similarly any subdirectories such as
http://xyz.domain.com/abc at http://domain.com/abc
I do not want redirects for all of my subdomains, but specifically for this.
thanks for the help
RewriteCond %{HTTP_HOST} ^xyz\.domain\.com$ RewriteRule ^/(.*) http://domain.com/$1 [redirect,last]
The easiest way to redirect a subdirectory to a domain:
RedirectMatch 301 ^/subdir/$ http://example.com$1
Source: https://habr.com/ru/post/1792157/More articles:Directly challenge / jump in ASM without using relevance (x86) - assemblyHow to add a notification view? - androidSilverlight: resource {0} could not be resolved (only during development) - c #ΠΠ°ΠΊ Ρ ΠΌΠΎΠ³Ρ ΠΎΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ Π·Π°Π³ΡΡΠ·ΠΊΡ Π²Π΅Π±-ΡΠ°ΠΉΡΠ° ASP.NET Π² Π·Π°Π²ΠΈΡΠΈΠΌΠΎΡΡΠΈ ΠΎΡ ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½Π½ΠΎΠ³ΠΎ ΡΠΎΡΡΠΎΡΠ½ΠΈΡ? - asp.netHow to get urls from html file? - urlExe on blocks of code is almost 57 times more than the same code created by Visual Studio - c ++How to calculate and build an instant phase in Mathematica - wolfram-mathematicaCreating WCF Services in Mono 2.8.2 - monoUnicode to convert python objects - pythonΠΠ°ΠΊ ΡΠ°Π·ΡΠ΅ΡΠΈΡΡ ΠΊΠΎΠ½ΡΠ»ΠΈΠΊΡ ΠΈΠΌΠ΅Π½ ΡΡΠ½ΠΊΡΠΈΠΉ ΠΏΡΠΈ ΠΊΠΎΠΌΠΏΠΈΠ»ΡΡΠΈΠΈ ΠΌΠΎΠ΄ΡΠ»Ρ ΡΠ΄ΡΠ° - cAll Articles