Jump to content
php.lv forumi

preg_match


goma smile

Recommended Posts

/^(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ī

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...