Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2013-01-05 14:03:46

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

[FIXED IN 1.0.5] Video category page no /, no redirection

For the video category page (for example: domain.com/amateur) there should be a automatic redirection to domain.com/amateur/, basically no trailing slash should redirect to trailing slash. This is a temporar fix in 1.0.5 (complete global re-design for 1.2). Edit modules/video/components/category.php and add:

        $url        = $slug.'/';
        if ($order == 'recent' && $page === 1 && !$timeline) {
            if (CURRENT_URL == BASE_URL.'/'.$slug) {
                VF::redirect(BASE_URL.'/'.$slug.'/', '301');
            } elseif (CURRENT_URL == BASE_URL.'/'.$slug.'/recent') {
                VF::redirect(BASE_URL.'/'.$slug.'/recent/', '301');
            }
        } else {
            if ($order) {
                $url    .= $order.'/';
            }

            if ($timeline) {
                $url    .= $timeline.'/';
            }

            if ($page > 1) {
                $url    .= $page.'/';
            }
        
            if (!VUri::match($url)) {
                VModule::load('404', TRUE);
            }
        }

before:

$categories = $this->get_video_categories();

Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB