goma smile Posted July 31, 2010 Report Share Posted July 31, 2010 Atvainojiet, bet kā vaig būt, lai www. http:// nav obligāti /^http\:\/\/www\.links\.lv\/([0-9]+)?/ Quote Link to comment Share on other sites More sharing options...
marcis Posted July 31, 2010 Report Share Posted July 31, 2010 /^(http\:\/\/)?(www\.)?links\.lv\/(\d+)?$/ Quote Link to comment Share on other sites More sharing options...
j2b Posted July 31, 2010 Report Share Posted July 31, 2010 /^(http\:\/\/)?(www\.)?links\.lv\/(\d+)?$/ Ja serveris ir tavā kontrolē, tad alternatīvs risinājums ir VirtualHost norādīt Redirect. http:// kā tāds nav obligāts, jo modernie pārlūki to uztver pēc noklusēšanas. www vai "cits-nosaukums" ir atkarīgs no tā, kādi ir tavi DNS ieraksti A hostam un to visu var risināt 3 veidos: DNS līmenī VirtualHost vai web servera konfigurācijas līmenī .htaccess līmenī Quote Link to comment Share on other sites More sharing options...
goma smile Posted August 1, 2010 Author Report Share Posted August 1, 2010 (edited) Paldies viss sanāca Edited August 1, 2010 by goma smile Quote Link to comment Share on other sites More sharing options...
marcis Posted August 1, 2010 Report Share Posted August 1, 2010 j2b, kāds šim jautājumam sakars ar tavu stāstu? Varbūt izlasi jautājumu vēlreiz... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.