• 08-11-2014, 16:46:09
    #1
    Wordpress siteme manga okuma scripti entegre ettim. Manga okuma scriptinin .htaaccesini scriptin olduğu directorye mi atmam gerekiyor yoksa wordpressin yüklü olduğu ana directorye mi atmam gerekiyor?

    Wordpressin .htaccess
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    </IfModule>
    
    suPHP_ConfigPath /home/mangayur/public_html 
    <Files php.ini> 
    order allow,deny 
    deny from all 
    </Files>
    
    
    # END WordPress
    Manga okuma scriptinin .htacces
    Options +FollowSymlinks
    
    RewriteEngine on
    
    RewriteRule ^mangas/([^/]+)/([^/]+)/$ - [F,L]
    RewriteRule ^mangas/([^/]+)/$ - [F,L]
    RewriteRule ^mangas(/?)$ - [F,L]
    
    RewriteRule ^([^/.]+)/([^/.]+)/([0-9]+)(/?)$ index.php?manga=$1&chapter=$2&page=$3 [L]
    RewriteRule ^([^/.]+)/([^/.]+)(/?)$ index.php?manga=$1&chapter=$2 [L]
    RewriteRule ^([^/.]+)(/?)$ index.php?manga=$1 [L]
  • 09-11-2014, 11:05:37
    #2
    Arkadaşlar aşağıdaki koda http://mangayurdu.com/myy/Naruto diye giren bir URL nereye yönlenir?

    RewriteRule ^myy/([^/.]+)/([^/.]+)/([0-9]+)(/?)$ index.php?page_id=432&manga=$1&chapter=$2&page=$3 [L]
    RewriteRule ^myy/([^/.]+)/([^/.]+)(/?)$ index.php?page_id=432&manga=$1&chapter=$2 [L]
    RewriteRule ^myy/([^/.]+)(/?)$ index.php?page_id=432&manga=$1 [L]
    http://mangayurdu.com/myy sayfasının page_id=432
  • 10-11-2014, 19:58:41
    #3
    Sorunumun çözümüne baya yaklaştım ama hala bazı problemler var. Aşadığaki kodu temanın function.php sine ekledim.

    function add_my_external_rules()
    {
        add_rewrite_rule('^myy/([^/]+)/([^/]+)/([^/]+)/?$', 'index.php?page_id=463&manga=$matches[1]&chapter=$matches[2]&page=$matches[3]','bottom');
    	add_rewrite_tag('%manga%', '([^&]+)');
    	add_rewrite_tag('%chapter%', '([^&]+)');
    	add_rewrite_tag('%page%', '([^&]+)');
    }

    Fakat http://mangayurdu.com/myy/Naruto adresi beni http://mangayurdu.com/project/naruto/ adresine götürüyor. Değişken blech olunca ise Bleach projesine götürüyor. Sanırım WP değişkenleri karıştırıyor. Var mıdır bu sorunun bir çözümü?