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.
Flaze Posted November 15, 2019 Posted November 15, 2019 Put this in a .htaccess file: RewriteEngine On RewriteRule ^animaldb /computing/website/animaldb/ [L]
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now