.htaccess - htaccess redirect old site to 2 different domains -


OK, then it happens only on the scenario:

I have a blog on the root directory of my host I've hosted some apps on subfolders called I FsGallery. Now, I bought a new domain for my blog and another domain for my app. Ii would like to know the proper HTACAC 301 redirects so that my old directory can be redirected to my new domain

Here is a sample directory:

  root / / app [blog ]  

Trying: newdomainforapp.com to redir / app redard [blog] newdomainforblog.com

Also, basically, accepting my app url The parameter used for this is: App / user / 1234567

So also I would like to: redir / app / user / {dynamic int parameter} newdom Ainforapp.com/profile/{dynamic int parameter}

Can anyone help me?

It seems that should work fine.

RewriteRule ^ /? App / User / ([0- 9] +) http://newdomainforapp.com/profile/$1 [R = 301, L] RUDA Rules ^ /? App (/ (. *)) $$ Http://newdomainforapp.com/$2 [R = 301, L] Remrame rules ^ /? (. *) Http://newdomainforblog.com/$1 [R = 301, L]

You will need to play with groups to properly redirect articles.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -