Translate Links

Author Message
Alex 01/28/2008 12:15 pm
Hello!
Sorry for bad english, but i try explain.
I like this offline solution more and more, when i download more sites. And i stay happend, when i found, that i can use offline files to indexed by search desktop engines like google or yandex. Its super. But i found, that if my projects download files in direct link with filenames like address link (*.php, *.asp and other extentions) search engines do not index its, because that files has no text extension. From that moment i began use translation link with mask

*.php -> * ->*.html to translate *.php.html, *.asp->*->*.html to translate *.asp.html

and search engines bigan index its. Super, but some time i found strange thing, when i found, that link http://www.php.ru/default.htm translate to http://www.php.ru/default.htm.html. I was wonder! And I understand, that transtale function mistake, that translate www.php.ru... by rule *.php (!), but it do's not do this.
My question: what to do now, to avoid this situation, and when you begin use regular expressions in future (i think, its very important!!!)?
Thanks.
Oleg Chernavin 01/30/2008 03:14 pm
There is a feature to add standard extensions in Offline Explorer. You can select a Project and use File - Export menu for that.

Best regards,
Oleg Chernavin
MP Staff
Alex 02/01/2008 06:46 am
No. This not, what i need. Export not goot solution. I need "URL Substitutes" with "mind" rule. But now i do my tast like:

*.php.ru/*.html -> * -> *
*.php.ru/*.php -> /**.php* -> /**.php*.html

and it work good.
Oleg Chernavin 02/01/2008 07:57 am
You can change this to one simplier rule:

URL:
*.php
Replace:
.php
With:
.php.htm

Oleg.
Alex 02/01/2008 09:41 am
You're right, and i use this rule in simple sites, but it not work correct in "www.php.ru/index.html". I do not need to substitute *.html. Only *.php, but link "www.php.ru/index.html" do substitute with rule like your to "www.php.ru/index.html.htm"; because OE find ".php" in "www.php.ru" site name.
Oleg Chernavin 02/01/2008 09:47 am
OK. I see now. Yes, in this case your rules will work better.

Oleg.
Alex 02/01/2008 09:49 am
-> continue. My rule: *.php, *, *.html, because some links like index.php?asd=123&qwe=456, and i need file name like one + .html extention, because google desktop not search in ext.like file name "index.php.html@asd=123&qwe=456" (like your rule), only in "index.php@asd=123&qwe=456.html".

Thank you.
Oleg Chernavin 02/01/2008 10:14 am
Yes, this is also true.

Oleg.