Jump to content

Adulty Webmaster

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by Adulty Webmaster

  1. 6 minutes ago, Tech Support said:

    This is likely because your server doesn't have Apache installed and .htaccess file is not used at all. Please check with your server support about this.

    I can confirm: Apache/2.4.37 (AlmaLinux)

  2. 12 hours ago, Tech Support said:

    Should be these:

    RewriteRule ^latest-updates/([0-9]+)/$  /latest-videos/$1/ [R=301,L,QSA]
    RewriteRule ^latest-updates/$  /latest-videos/ [R=301,L,QSA]

     

    I've done this but still directs to a nginx 404 page? also this is suppose to be added underneath 

    # seo redirect rules

     

    correct?

  3. I'm trying to redirect old url's to new but I'm struggling to figure this out within my .htaccess

     

    # seo redirect rules ---------------------------------------------------------------------------------------------------
    
    RewriteRule ^latest-updates/([0-9]+)/$  /latest-videos/([0-9]+)/$/ [R=301,L,QSA]
    RewriteRule ^latest-updates/$  /latest-videos/$/ [R=301,L,QSA]
    
    # redirect all index.php to the folder root
    
    RewriteCond %{THE_REQUEST} ^.*/index\.php
    RewriteRule ^(.*)index.php$ /$1 [R=301,L]
    
    # redirect all script.php/blabla to website root
    
    RewriteRule ^.+\.php/ / [R=301,L]
    
    # automatically add slash at the end
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !\..+$
    RewriteCond %{REQUEST_URI} !/$
    RewriteCond %{REQUEST_URI} !^/embed/
    RewriteRule (.*) /$1/ [R=301,L]
    
    RewriteRule ^([0-9]+)/([^/]+)/$    /videos/$1/$2/ [R=301,L]
    
    # global ---------------------------------------------------------------------------------------------------------------
    
    RewriteRule ^sdfsdfsdf/$            terms.php [L,QSA]
    RewriteRule ^terms/$            terms.php [L,QSA]
    RewriteRule ^dmca/$             dmca.php [L,QSA]
    RewriteRule ^2257/$             2257.php [L,QSA]
    
    RewriteRule ^search/([^/]+)/$   search.php?q=$1 [L,QSA]
    RewriteRule ^search/$           search.php [L,QSA]
    
    RewriteRule ^link/([^/]+)/$     redirect_cs.php?dir=$1 [L,QSA]
    
    RewriteRule ^random_video(/)?$  redirect_random_video.php [L,QSA]
    RewriteRule ^random_album(/)?$  redirect_random_album.php [L,QSA]
    
    # posts example --------------------------------------------------------------------------------------------------------
    
    RewriteRule ^news/$                     posts_list.php?post_type=news [L,QSA]
    RewriteRule ^news/([0-9]+)/$            posts_list.php?post_type=news&from=$1 [L,QSA]
    RewriteRule ^news/([0-9]+)/([^/]+)/$    view_post.php?id=$1&dir=$2 [L,QSA]
    RewriteRule ^news/([^/]+)/$             view_post.php?dir=$1 [L,QSA]
    
    # videos ---------------------------------------------------------------------------------------------------------------
    
    RewriteRule ^latest-videos/([0-9]+)/$      videos_list_latest.php?from=$1 [L,QSA]
    RewriteRule ^latest-videos/$               videos_list_latest.php [L,QSA]

     

    I'm basically trying to redirect my old url /latest-updates/ to /latest-videos/

     

    Can somebody explain what i'm doing wrong here?

  4. On 7/31/2017 at 1:11 PM, Tech Support said:

    Now if you also want to redirect traffic from all other sites that used your embed codes, you can add this block of code in Embed code template:

    <script>
    if (window.top != window.self) {
    window.top.location = '{{$data.canonical_url}}';
    } else {
    window.location = '{{$data.canonical_url}}';
    }
    </script>
    

    Then all users which open other sites with your embed codes will be redirected to your videos that were embedded.

     

    does this code work with the most recent release of KVS to redirect traffic from sites that have crawled all our videos?

    • Like 1
  5. I'm trying to change the URL structure of my albums page so for example changing domain.com/albums/ to domain.com/photos/

    but when I change this option in the texts section in the backend of KVS, I can see the URL structure changes but all the new URLs are 404 pages, is there something I'm not doing right?

×
×
  • Create New...