Jump to content
php.lv forumi

htaccess rewrite nestrādā ar www


Recommended Posts

nesaprotu protams no htaccess neko un izbūros caur googli tiktāl

RewriteEngine on
Options +FollowSymLinks
RewriteBase /
# Site 1
RewriteCond %{HTTP_HOST} ^test247.lv$ [NC]
RewriteCond %{REQUEST_URI} !^/_test247_lv/.*$
RewriteRule ^(.*)$ /_test247_lv/$1 [L]
# Site 2
RewriteCond %{HTTP_HOST} ^test247.com$ [NC]
RewriteCond %{REQUEST_URI} !^/_test247_com/.*$
RewriteRule ^(.*)$ /_test247_com/$1 [L]

Bez www strādā. Ar www. nestrādā.


Var kāds pielabot? 

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.

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.


  • Create New...