Multiple alternative urls
Hi,
I'm trying to improve an engine, and I have ran into some trouble I can't seem to get around.
The registration and login pages are often not linked to on the website, so therefore I need to hit the right url with alternative url. I tried doing this:
alternative url=./link1|./link2|./link3|./link4
But this just resulted in an url looking like domain.com/link1|./link2|./link3|./link4 . How would I properly make SER try x different urls before giving up?
Also, I'm wondering what exactly the dot (.) means in the above function? I'm guessing it's stripping the url to the root domain, but if some websites has its engine on domain.com/portal/, would SER recognise this or should I rather try stripping the url to /index.php* as it often appears after either the root domain or the folder where the engine is installed?
Comments
./ means it cuts any document or parameter and works on that same path. However there is no way to add more than one alternative links other than using a variable itself like
alternative url=%alt_url%
[alt_url]
type=extract
find url=....
find link...
default=%alt_url2%
...
alternative url=%alt_url%
[alt_url]
type=extract
url=/some/alt/url1
find link=link you want to use from there
find url=....
default=%alt_url2%
[alt_url2]
type=extract
url=/some/alt/url2
find link=link you want to use from there
find url=....
default=%alt_url3%
...