Can someone tell me how it works when you type in a URL like this:
It'll pull up a page even though when you look into the staging folder, there is nothing called sitemgr? And then when you click on links, it'll go to locations that aren't in that folder either and are in fact in another folder on the server that are outside of the public.html folder??
So for instance a file structure on the server might be:
- Public HTML
- Staging Files
The technique used to create those links is called Mod Rewrite.
It uses .htaccess file with mod-rewrite instructions.
You can find more details and examples if you look on the net for "htaccess mod-rewrite tutorial" .
I took a look at a few tutorials and I understand it a bit more. But if you're working on a site that someone else did and they are incorporating this method, doesn't it make it much harder to understand the structure of the site and where the pages are located that are actually displayed? Is it just a matter of understanding the .htaccess file in the site?
Originally Posted by MarPlo
Yes, in the case the url addresses are rewrited (usualy for seo, or for security, to hide the real file location) you should study the .htaccess code to understand where the pages are located.
to find out more, use google to find "apache htaccess redirs" or something similar
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)