dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Page Re-Directs

  1. #1
    Join Date
    Apr 2009
    Posts
    346

    Page Re-Directs

    Can someone tell me how it works when you type in a URL like this:

    www.somesite.com/staging/sitemgr

    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
    - Staging Files
    - Etc..

  2. #2
    Join Date
    Feb 2011
    Posts
    231
    Hi,
    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" .

  3. #3
    Join Date
    Apr 2009
    Posts
    346
    Quote Originally Posted by MarPlo View Post
    Hi,
    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?

  4. #4
    Join Date
    Feb 2011
    Posts
    231
    Hi,
    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.

  5. #5
    Join Date
    May 2012
    Posts
    8
    to find out more, use google to find "apache htaccess redirs" or something similar

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles