Setting up htaccess redirect for old website
I have a domain at fkelly.org on inmotionhosting. The website is written in Drupal 8. My wife's website was on a glowhost server with DNS set up on Godaddy. I redirected the Godaddy DNS settings to InMotion DNS settings. Worked fine. Her domain was "sculptandprint.com". I can redirect the "root" of her domain, that is references to "sculptandprint.com" pretty easily using your redirect tool, which puts the following into my htaccess:
RewriteCond %{HTTP_HOST} ^sculptandprint\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.sculptandprint\.com$
RewriteRule ^/?$ "http\:\/\/fkelly\.org\/drupal8\/gays" [R=301,L]
All well and good. However, her old site was a CMS and used a lot of URLs such as:
http://sculptandprint.com/html/modules/gallery2/main.php?g2_itemId=648&g2_view=slideshow.SlideshowMediaRss
or
http://sculptandprint.com/html/modules.php?file=imageshow&imageno=2&name=uncertain
or even as complicated as:
http://sculptandprint.com/html/modules/gallery2/main.php?g2_authToken=726c838a9dba&g2_controller=exif.SwitchDetailMode&g2_mode=summary&g2_return=%2Fhtml%2Fmodules%2Fgallery2%2Fmain.php%3Fg2_itemId%3D853%26g2_GALLERYSID%3Dc5a0c08e153738b8f81e1e2ae3e15f9b
I want to redirect all of these to: fkelly.org/drupal8/gays
The Cpanel redirect tool won't let me set up a wildcard redirect -- says it will create a loop. I have sculptandprint.com set up as an addon domain.
As far as I'm concerned, I will be happy if ANY incoming traffic with sculptandprint.com in it goes to fkelly.org/drupal8/gays. The query string stuff can all be trashed. I don't want the incoming stuff generating not founds. How do I do this?
RewriteCond %{HTTP_HOST} ^sculptandprint\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.sculptandprint\.com$
RewriteRule ^/?$ "http\:\/\/fkelly\.org\/drupal8\/gays" [R=301,L]
All well and good. However, her old site was a CMS and used a lot of URLs such as:
http://sculptandprint.com/html/modules/gallery2/main.php?g2_itemId=648&g2_view=slideshow.SlideshowMediaRss
or
http://sculptandprint.com/html/modules.php?file=imageshow&imageno=2&name=uncertain
or even as complicated as:
http://sculptandprint.com/html/modules/gallery2/main.php?g2_authToken=726c838a9dba&g2_controller=exif.SwitchDetailMode&g2_mode=summary&g2_return=%2Fhtml%2Fmodules%2Fgallery2%2Fmain.php%3Fg2_itemId%3D853%26g2_GALLERYSID%3Dc5a0c08e153738b8f81e1e2ae3e15f9b
I want to redirect all of these to: fkelly.org/drupal8/gays
The Cpanel redirect tool won't let me set up a wildcard redirect -- says it will create a loop. I have sculptandprint.com set up as an addon domain.
As far as I'm concerned, I will be happy if ANY incoming traffic with sculptandprint.com in it goes to fkelly.org/drupal8/gays. The query string stuff can all be trashed. I don't want the incoming stuff generating not founds. How do I do this?