- Code: Select all
RewriteRule ^news/([^/\.]+)$ news\.php?cat=$1 [L]
RewriteRule ^news/([^/\.]+)$ news-detail\.php?slug=$1 [L]
RewriteRule ^news/([^/\.]+)$ news\.php?cat=$1 [L]
RewriteRule ^news/([^/\.]+)$ news-detail\.php?slug=$1 [L]
MCFC4Heatons wrote:I see websites doing exactly this with urls like: /news/some-category and /news/some-article-title ..... How are they achieving this do you think?
RewriteRule ^news/some-category/([^/\.]+)$ news\.php?cat=$1 [L]
RewriteRule ^news/some-article/([^/\.]+)$ news-detail\.php?art=$1 [L]
Users browsing this forum: No registered users and 17 guests