If I am understanding correctly, you want to do a location change to the new page and then scroll to a given area on the page with a clean URL?
If so, this could be done with a URL Rewrite in .htaccess (or similar config) and a bit of JavaScript to determine where you should be on the page:
.htaccess
For example, this would pass all requests to /otherpage/{section} to otherpage.html (simplified for the purpose of this answer.)
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(otherpage/.*)$ otherpage.html [L]
JavaScript
And then, on otherpage.html, you could detect the current path and scroll the page accordingly.
switch( location.pathname ) {
case '/page/section-1/':
// scroll to section 1
break;
case '/page/section-2/':
// scroll to section 2
break;
case '/page/section-2/':
// scroll to section 2
break;
}
However, now that you are on the page, if you wanted this scrolling effect to continue without refreshing the page, you would have to look at using HTML5 History pushState. For this, History.js has worked well for me in the past.
Edit: oh, and watch that trailing slash in location.pathname. It may or may not be there, so you may want to sanitize that before comparing.