Announcement

Collapse
No announcement yet.

[RESOLVED] .htaccess redirect using date

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [RESOLVED] .htaccess redirect using date

    Hi,
    trying to figure out how to write a rule that will take the following URL -
    Code:
    http://www.example.com/2013/06/31/blog-title/
    and send it to -
    Code:
    http://www.example.com/blog-post.php?y=2013&m=6&d=31&title=blog-title
    not having much luck with the dynamic nature of the dates & title.
    I'm also assuming that this is the most SEO friendly way to present blog posts.

    thanks in advance for any help

  • #2
    figured it out -
    Code:
    RewriteRule ^blog-post/([0-9]+)/([0-9]+)/([0-9]+)/(.*)/ blog-post.php?y=$1&m=$2&d=$3&title=$4

    Comment

    Working...
    X