Loading ...

404 not found for articles

Board index / PHP Melody - Video CMS

For PHP Melody version 2 and newer

Postby jgermanas on Nov 19, 2013 5 am


Hi all!

I'm having a problem ...

My articles appear with error 404. Why?

Could anyone help me?

The file "article.php" is unchanged and my htaccess follows:

Code: Select all
RewriteRule ^articles/read-(.*)_([0-9]+).html$ article_read.php?a=$2
RewriteRule ^articles/index-([0-9]+).html$ article.php?page=$1
RewriteRule ^articles/browse-(.*)-([0-9]+).html$ article.php?c=$1&page=$2
RewriteRule ^articles/tag/([^/]+)/page-([0-9]+)(/)?$ article.php?tag=$1&page=$2
RewriteRule ^articles/tag/([^/]+)(/)?$ article.php?tag=$1&page=1
RewriteRule ^articles/popular-([0-9]+).html$ article.php?show=popular&page=$1
RewriteRule ^articles(\/|.html)?$ article.php
RewriteRule ^article(\/|.html)?$ article.php
RewriteRule ^pages/(.*)\.html$ page.php?name=$1


My website link is: http://www.videosmais.com.br (articles = artigos)

Another example: http://www.videosmais.com.br/articles/r ... los_2.html

TYVM for the help and support for this.
jgermanas
Verified Customer
Verified Customer
 
Posts: 45
Joined: Jun 16, 2009 5 pm
Reputation points: 0

Postby jgermanas on Nov 20, 2013 3 am


Anybody!? This is a bug or an error?
jgermanas
Verified Customer
Verified Customer
 
Posts: 45
Joined: Jun 16, 2009 5 pm
Reputation points: 0

Postby jgermanas on Nov 21, 2013 7 pm


Hello!?

All archives is unchanged...
Why this...?
jgermanas
Verified Customer
Verified Customer
 
Posts: 45
Joined: Jun 16, 2009 5 pm
Reputation points: 0

Postby jgermanas on Nov 22, 2013 6 pm


This only works without SEO friendly URLs..
jgermanas
Verified Customer
Verified Customer
 
Posts: 45
Joined: Jun 16, 2009 5 pm
Reputation points: 0

Postby jgermanas on Nov 22, 2013 7 pm


It's a redirect loop... why this?

http://www.videosmais.com.br/articles/r ... ovi/1.html

redirect to

http://www.videosmais.com.br/articles/r ... index.html

My article_functions.php:

Code: Select all
function art_make_link($type = 'article', $args = array())
{
   $url = '';
   
   $url = _URL .'/';
   switch ($type)
   {
      case 'article':
         
         if (_SEOMOD)
         {
            $title = sanitize_title($args['title']);
            if (strlen($title) == 0)
            {
               $title = 'read';
            }
            
            $url .= 'articles/read-';
            $url .= $title .'_'. $args['id'];
            $url .= '.'. _FEXT;
            
            if (strpos($url, '-video_') !== false)
            {
               $url = str_replace('-video_', '_video_', $url);
            }   
         }
         else
         {
            $url .= 'article_read.php?a='. $args['id'];
         }
      break;


How can I solve this!?

Can you help me to solve this!?
jgermanas
Verified Customer
Verified Customer
 
Posts: 45
Joined: Jun 16, 2009 5 pm
Reputation points: 0

Postby jgermanas on Nov 23, 2013 7 pm


Anybody!??
jgermanas
Verified Customer
Verified Customer
 
Posts: 45
Joined: Jun 16, 2009 5 pm
Reputation points: 0


Who is online

Users browsing this forum: No registered users and 0 guests