Jump to content
php.lv forumi

HTACCESS atšķirības starp serveriem


Recommended Posts

Tātad vai ir iespēja ka HTACCESS strādā uz viena webservera, bet nestrādā uz otra?


Mans htaccess:

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    public/    [L]
    RewriteRule    (.*) public/$1    [L]

un iekšā /public direktorijā ir šāds:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !^(.+)\.(css|js|jpg|jpeg|JPG|gif|png|PNG|ico|pdf|swf|xml|pem)$
RewriteRule ^(.*)$ index.php?$1 [PT,L]

Uz lokālā webservera  (WAMPP) un uz viena klienta hostinga @ GARM darbojas, bet citam klientam uz GARM šis nestrādā


Link to comment
Share on other sites

  • Replies 36
  • Created
  • Last Reply

Top Posters In This Topic

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...