Hi,
I am using NGINX as my webserver and i have a question which i really dont know if it is technically doable. So i start to explain.
1.) I have categorized my web pages under my root so i have lets say
20 different folders and each folder has its .html pages in it. I have to mention that this is a
STATIC website. So for example we will have pages like:
Code:
www.mydomain.com/folder-A/bla-bla-bla-bla.html
www.mydomain.com/folder-B/talk-talk-talk.html
www.mydomain.com/folder-C/bip-bip-bip.html
2.) Ok... so now comes the part that i am interested in. Can i give some
rewrite rule to NGINX so that NGINX
removes the folder part from each url? Like a 301 redirect so the urls look like:
Code:
www.mydomain.com/bla-bla-bla-bla.html
www.mydomain.com/talk-talk-talk.html
www.mydomain.com/bip-bip-bip.html
I know i can do this by simply throwing ALL .html files into the ROOT directory but the website is very large and has about 3000 .html web documents. So it would be better if i can categorize these 3000 .html files into folders BUT it would be nice that the actual URL shows up different without the folder part.
Is this doable? Without havening duplicate content and being penalized from Google. If this is doable... can someone guide me, give me an eample or help me out somehow to do it right? With a correct 301 permanent redirect etc?
Thanks in advance
George