| | |
specific mod_rewrite case
![]() |
I migrated blogs from serendipity to wordpress. In doing so, I went from one url schema to another.
Serendipity:
Wordpress:
Notice that it needs to have caps removed and all punctuation except the '-' removed from the URL. Now the nearest I can come up to with this is the following:
The most important line being: RewriteRule ^index.php\?/archives/([0-9]+)-(.*)\.html$ http://linux-blog.org/$2/ [R=301,QSA,L]
OF course, this doesn't work at all. Can someone point me in the right direction?
Serendipity:
http://example.com/index.php?/archives/111-Example-title!-of-POst.html
Wordpress:
http://example.com/example-title-of-post/
Notice that it needs to have caps removed and all punctuation except the '-' removed from the URL. Now the nearest I can come up to with this is the following:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index.php\?/archives/([0-9]+)-(.*)\.html$ http://linux-blog.org/$2/ [R=301,QSA,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressThe most important line being: RewriteRule ^index.php\?/archives/([0-9]+)-(.*)\.html$ http://linux-blog.org/$2/ [R=301,QSA,L]
OF course, this doesn't work at all. Can someone point me in the right direction?
My Home Away from Home: Yet Another Linux Blog
![]() |
Similar Threads
- This Should be Easy for You Guys! (Linux Servers and Apache)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: PC World Linux laptop warranty saga gets even more bizarre
- Next Thread: The Linux Party
| Thread Tools | Search this Thread |
.net apache apple asus bbc bluegene centos cisco citrix cloud cloudcomputing datacenters debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print qumranet redhat rhel robot russia sco server servers slackware software solaris source sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





