1 . Can this url changed into this format with .htaccess without moving kurum.php file into a new directory?
http://fxrehber.com/kurumlar/7-ata-foreks
(I can add "/kurumlar" directory by .htaccess but my css and image link won't work)
I used full path of the image inside php file and it works with this: .htaccess:
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^kurumlar\/([0-9]+)-([a-zA-Z0-9-_]+)$ /kurum.php?id=$1&sef=$2
</IfModule>
kurum.php:
<?php
var_dump($_REQUEST);
?>
<img src="/sites/default/files/1.png">
2 . Can I pass the id value without mentioning it in the SEF url like this:
http://fxrehber.com/kurumlar/ata-foreks
(which is the best option for me)
Only if ata-foreks
can be used as a unique alias of an article and used instead of id.
"Is there a disadvantage about this?"
Yes. Searching by string is slower, then by integer.