Jump to content
php.lv forumi

Kārtējā problēma ar mod_rewrite


nemakuphp

Recommended Posts

Lieta sekojoša, ir šāds .htaccess fails

 

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^kkas/(.*)$ kkas.php?id=$1 [L,QSA]

 

Ir fails /root/sub_dir/kkas.php

 

.htaccess atrodas /root/sub_dir/

 

Ieejot http://domain.tld/sub_dir/kkas/123 netiek izvilkts ID. Pārbaudīju ar print_r izvadot $_GET masīvu, neko neatgriež. Cerams, ka varēsiet palīdzēt.

 

EDIT: Tikko atklāju, ka ja pirmo kkas liek atsevišķu no .php faila nosaukuma, tad viss strādā, taču tiklīdz uzliec atpakaļ tādu pašu, kā .php failam, nestrādā.

Edited by nemakuphp
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...