new_rotation_step_by_step
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| new_rotation_step_by_step [2017/04/07 15:17] – [Nginx ReWrites] admin | new_rotation_step_by_step [2026/03/21 10:11] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== New Rotation Step By Step ====== | ====== New Rotation Step By Step ====== | ||
| - | There are 2 types of rotation: Old (Rotation - Pages) and New (Rotation - CMS). | + | A modern |
| - | Let's say you have 2 categories. With old rotation | + | This rotation is built on the old system but lets you quickly build multi-niche, multi-content sites. You can also create your own galleries from FHG content or upload content via FTP. |
| - | Basically any multiniche site consists of at least 2 pages: index (with list of thumbs | + | Most multi-niche sites have 4 core pages: index, category thumb list, content page (video or gallery), and optionally a search page. With SmartCJ, you can launch such a site in 15 minutes. |
| + | Extended versions add user registration, | ||
| - | ===== Basics ===== | + | The system is extremely flexible. You can create almost any site type with it. |
| - | New rotation is based on old rotation ie same templates, subtemplates and so on [[Rotation Step by Step]] | + | ===== Basic Concepts ===== |
| - | There 2 types of galleries: embedded and external. External - this is regular FHG. Embedded - galleries created by SmartCJ. Script can create custom galleries from sponsor' | + | There are two main content types for tube CMS: |
| - | + | ||
| - | ===== Setup ===== | + | **External galleries** - Content from sponsors (like FHG) that lives on their servers. Clicking links external galleries is an external redirect. |
| - | | + | **Embedded galleries** |
| - | * Rotation - Groups : Create groups (categories, | + | |
| - | * Copy (!!! copy, not move, do not delete source) to the root of your domain index.php and common.php from scj/cgi | + | |
| - | * Create .htaccess at the root of your domain | + | |
| - | * Settings - CJPages: type PATH (not URL, you need PATH!!!) to scj/ | + | |
| + | You can use both types. SmartCJ can also convert sponsor content into either format. | ||
| - | ===== Old Rewrites for version 1.X ===== | + | ===== Engine Setup ===== |
| - | < | + | * Go to Rotation → Settings and enable the rotation engine (Rotation = On) |
| - | RewriteEngine | + | * Go to Rotation - Groups and create site categories. You can create unlimited categories. |
| - | RewriteCond %{QUERY_STRING} ^(.+)$ | + | |
| - | RewriteRule ^gallery/(.*)/(.*)/index.html$ / | + | * Verify that your rewrite rules are configured |
| - | RewriteRule ^gallery/(.*)/(.*)/ | + | |
| - | RewriteRule ^gallery/(.*)/(.*)/$ / | + | |
| - | RewriteRule ^gallery/(.*)/(.*)/([0-9]{1,2}).html$ / | + | |
| - | #slug galleries | + | ===== Adding |
| - | RewriteCond %{QUERY_STRING} ^(.+)$ | + | |
| - | RewriteRule ^gallery/ | + | |
| - | RewriteRule ^gallery/ | + | |
| - | RewriteRule ^gallery/ | + | |
| - | RewriteRule ^gallery/ | + | |
| - | RewriteCond %{QUERY_STRING} ^(.+)$ | + | All galleries are DYNAMIC—no physical directories or files are created on your server. Gallery links are virtual; the script generates them on the fly. This is convenient because if you change advertising, |
| - | RewriteRule ^category/ | + | |
| - | RewriteRule ^category/ | + | |
| - | RewriteRule ^category/ | + | |
| - | RewriteCond %{QUERY_STRING} ^(.+)$ | + | |
| - | RewriteRule ^category/ | + | |
| - | RewriteRule ^category/ | + | |
| - | RewriteRule ^tag/(.*)/$ / | + | See [[New Rotation Content]] for details. |
| - | RewriteRule ^search/ | + | |
| - | RewriteRule ^action/ | + | |
| - | RewriteRule ^action/(.*)$ / | + | |
| - | RewriteRule ^go/(.*)/$ / | + | After adding content, your site will have galleries. Next, move to [[New Rotation Templates]] to customize appearance. |
| - | RewriteRule ^search_log/ | + | |
| - | |||
| - | RewriteRule ^sponsor/ | ||
| - | RewriteRule ^sponsor_galleries/ | ||
| - | |||
| - | RewriteRule ^models/$ / | ||
| - | RewriteRule ^models/ | ||
| - | RewriteRule ^model/ | ||
| - | RewriteRule ^model/ | ||
| - | |||
| - | RewriteRule ^report/ | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | **That' | ||
| - | |||
| - | |||
| - | **Nginx ReWrites** | ||
| - | |||
| - | < | ||
| - | |||
| - | #old style | ||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | #style 2.0 | ||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | |||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/go/(.*)/$ / | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/models/$ / | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/ | ||
| - | |||
| - | </ | ||
new_rotation_step_by_step.1491578246.txt.gz · Last modified: by admin
