• 22-06-2023, 12:30:10
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Merhaba, Wordpress sitemi yeni domaine taşıdım ama eski sitenin .htaccess dosyasına alttaki kodu ekliyorum linkler yönlenmiyor yardımcı olur musunuz.

    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.eskidomain\.com
     RewriteRule (.*) http://www.yenidomain.com/$1 [R=301,L]
  • 22-06-2023, 12:35:02
    #2
    Bunu deneyin.


    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^hipecraft\.com$ [OR]
    RewriteRule ^(.*)$ "https\:\/\/\blog.hipecraft\.com\/$1" [R=301,L]
    RewriteRule (.*) https://blog.hipecraft.com//$1 [R=301,L]
    Rewriterule ^wp-content/uploads/(.*)$ https://blog.hipecraft.com/$1 [r=301,nc,l]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    </IfModule>
     
    # END WordPress
  • 22-06-2023, 12:37:11
    #3
    kreawich adlı üyeden alıntı: mesajı görüntüle
    Bunu deneyin.


    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^hipecraft\.com$ [OR]
    RewriteRule ^(.*)$ "https\:\/\/\blog.hipecraft\.com\/$1" [R=301,L]
    RewriteRule (.*) https://blog.hipecraft.com//$1 [R=301,L]
    Rewriterule ^wp-content/uploads/(.*)$ https://blog.hipecraft.com/$1 [r=301,nc,l]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    </IfModule>
     
    # END WordPress
    şimdi bu kodu buldum çalıştı teşekkürler yinede

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.websiteniz.com [NC]
    RewriteRule ^(.*)$ http://websiteniz.com/$1 [L,R=301,NC]