Setting up re-direct with C-Panel causes sub-pages not to load
Have a Drupal site. Site was created in a sub-directory of public_html. This worked fine, except that the sub-directory was required for all sub-pages (domain mapped to the sub-directory, so the main page would show using just the domain name,, but when you gave someone a link to some other page on the site it needed to have the sub-directory in the link). So, because people have used the site and have cached links containing the sub-directory, I added a permanent re-direct using C-Panel Redirects - redirected the domain with the subdirectory extension to the domain itself, and allowed wildcards. Initially got an error that resulted in me having to delete the .htaccess file (fortunately I just renamed it). After doing this the re-direct was established without complaint, but I subsequently discovered that none of the links on the main page worked anymore (links to other pages on the site). Moreover, it was no longer possible to pull up ANY page other than the main page, either using the old address (including the sub-directory name), or with the new address (without the sub-directory name).
Eliminating the redirect and restoring the original .htaccess file returned me to my previous state where everything worked again, but I still would like to set up the redirect to handle all the cached links out there. Any ideas how to do this successfully? I suspect I need to just edit the .htaccess file, but haven't a clue how to do that.
Eliminating the redirect and restoring the original .htaccess file returned me to my previous state where everything worked again, but I still would like to set up the redirect to handle all the cached links out there. Any ideas how to do this successfully? I suspect I need to just edit the .htaccess file, but haven't a clue how to do that.