(SEO + htaccess) Page-list 分页和 page-detail

(SEO + htaccess) Page-list with pagination and page-detail

我遇到了 SEO 问题 - PHP。

我有 2 个页面:新闻列表页面和新闻详细信息页面。

但是,在 SEO point-view 上,我如何区分 URL 中的那两个页面?

目前,我正在使用 URLs:

我的文件.htaccess代码:

# first parameter
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/$ index.php?lang= [L]
#

# second parameter
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/$ index.php?lang=&page= [L]
#

# third parameter
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ index.php?lang=&page=&param= [L]

我的问题是读取第三个参数,因为我不知道这是页码还是新闻标题..

像这样:

# ignore files and directories from all rules below
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# first parameter
RewriteRule ^([^/]+)/$ index.php?lang= [L,QSA]

# second parameter with pagination
RewriteRule ^([^/]+)/page-(\d+)/$ index.php?lang=&page= [L,QSA]

# second parameter with title
RewriteRule ^([^/]+)/([^/]+)/$ index.php?lang=&title= [L,QSA]

# third parameter
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ index.php?lang=&page=&param= [L,QSA]