Jump to content
php.lv forumi

HTACCESS


eT`

Recommended Posts

Sveiki,

Kā htaccessā var dabūt, ja man mājaslapas folderis ir

/htdocs/lapa

bet viss, ko gribu attēlot ir /htcos/lapa/public

lai, kad dodas uz www.mananalapa.lv automātiski attēlo foldera public saturu.

Atrisināju

 

HTACCESS


RewriteEngine on
RewriteCond %{HTTP_HOST} ^lapa.tk$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.lapa.tk$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]

Edited by eT`
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...