Welcome to WebmasterWorld Guest from 54.198.210.67

Forum Moderators: Ocean10000 & incrediBILL & phranque

Moving multiple files into another folder

all lower case with hyphens and numbers

     
6:31 pm on Nov 13, 2017 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:June 4, 2002
posts: 1830
votes: 3


I had multiple files linked from one folder each with their own page.
like this:

example.com/folder/keyword1-keyword2/

I moved all those individual items onto a single page in the root. the old files had 2-4 words separated by hyphens and some with a number or letter on the end. they are all extensionless files and all lower case.

They are arranged like this

keyword1-keyword2/
keyword1-1letter/
keyword1-keyword2-number/
keyword1-keyword2-1letter/
keyword1-keyword2-keyword3-number/

I got this far writing the code for 2 keywords separated by hyphens but that's about all. Can someone help me with the rest of it?

RewriteRule ^folder1/[a-z]-[a-z]/$ http://www.example.com/page/ [R=301,L]
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members