Results 1 to 7 of 7

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739

    query string .htaccess

    , .htaccess , , index.php, . .
    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !index.php
    RewriteCond %{REQUEST_URI} !\.css$
    RewriteCond %{REQUEST_URI} !\.js$
    RewriteCond %{REQUEST_URI} !files/(.*)\.
    RewriteRule (.*) index.php?request=$1 [NC]
    .css, .js , . , , , "?request=_", . "dir1" "http://localhost/dir1", index.php, , "http://localhost/dir1/?request=dir1". ?
    Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19

  2. #2
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    index.php, ?reques=... ?
    .
    :
    RewriteCond %{REQUEST_FILENAME} !-d

  3. #3
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739
    , , . . - , , . , PHP-, " ", .

    "!-d", , , . ? , ...

    , -, .
    Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19

  4. #4
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    RewriteCond, , . rule .
    index.php dir1/ ?

  5. #5
    Registered User Veseliq's Avatar
    Join Date: Mar:2004
    Location:
    Posts: 2,289
    , - :
    Code:
    Options +FollowSymLinks
    IndexIgnore */*
    RewriteEngine on
    
    # if a directory or a file exists, use it directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # otherwise forward it to index.php
    RewriteRule . index.php
    IndexIgnore */* -. - , , , , index.php. , , , .htaccess :

    Code:
    deny from all

  6. #6
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739
    :
    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . index.php [NC,L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !index.php
    RewriteCond %{REQUEST_URI} !\.css$
    RewriteCond %{REQUEST_URI} !\.js$
    RewriteCond %{REQUEST_URI} !files/(.*)\.
    RewriteRule (.*) index.php?request=$1 [NC]
    , , index.php , index.php . , - , . , -.

    , . .

    Veseliq, , .js, .css , index.php /files, . ... - .htaccess .

    , .
    Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |