allu62 Posted November 15, 2019 Posted November 15, 2019 Hi. Can anyone please tell me how to do to define aliases like the following (Apache httpd.conf on my Windows 10): Alias /animaldb "C:/Programs/Apache24/htdocs/computing/website/animaldb" corresponding to the links: /animaldb/ => /computing/website/animaldb/ There is an Alias item in CPanel, but as I understood this is intended for domain aliasing rather than for directories. I actually use Redirect, what works well, but the redirected pages are excluded in Google Search, because of being redirects. Thanks for suggestions. Quote
Flaze Posted November 15, 2019 Posted November 15, 2019 Put this in a .htaccess file: RewriteEngine On RewriteRule ^animaldb /computing/website/animaldb/ [L] Quote
wolstech Posted November 15, 2019 Posted November 15, 2019 You can do this with URL rewriting instead. To be honest though, Google will follow a redirect and index the final destination, so your content would end up indexed either way. The URL shown is the only difference. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.