is there any way (coding’s fine) to make some kind of redirect for books addresses? I want to do something like this: from www.domain.com/book/[id] redirect to www.domain.com/index.php/[press]/catalog/book/[ID] (the correct OMP address for book). What’s happening first when the index is loading, when someone enter the www.domain.com URL? Maybe I should make some redirection there.
Thank you very much
Have a nice day
With a URL like [http://www.domain.com/index.php/press/…], requests are being fed through index.php (cf. omp/index.php at omp-stable-1_1_1 · pkp/omp · GitHub), which (generally) then hands processing off to the pages handlers (cf. omp/pages at omp-stable-1_1_1 · pkp/omp · GitHub).
OMP also supports RESTful URLs, which would strip out the index.php component of URL (while still using it under the hood). This would give more user friendly URLs without going to the full extent you describe. https://github.com/pkp/omp/blob/master/config.TEMPLATE.inc.php#L99
You can use your webserver’s architecture to capture the request before it reaches OMP. This would allow you to create arbitrary vanity URLs. For example, with Apache, see mod_rewrite: mod_rewrite - Apache HTTP Server Version 2.2
Thank you for your answer