WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2008, 09:45 PM
memaggiem memaggiem is offline
WebProWorld Member
 

Join Date: Apr 2004
Location: N.E.
Posts: 36
memaggiem RepRank 0
Default Redirect a lot of files using a wildcard?

Is it possible to redirect a whole bunch of files using a wildcar? For example, I moved about 20 files to a new subdirectory and still need tomove about 50 more to 2 other subdirectories! I don't want to have a huge massive .htaccess with a tone of redirect lines (Google did not like my having 10 different 301s in my .htaccess file at one point)

Each file starts with the same word so using a wildcard would not negatively impact the rest of my site files.

Is it possible?

TIA!
Maggie
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 01:03 AM
incrediblehelp's Avatar
incrediblehelp incrediblehelp is offline
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,129
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: Redirect a lot of files using a wildcard?

Quote:
Originally Posted by memaggiem View Post
(Google did not like my having 10 different 301s in my .htaccess file at one point)
Where did you get this idea? Just all all 70 lines you will be fine.
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 07:37 AM
memaggiem memaggiem is offline
WebProWorld Member
 

Join Date: Apr 2004
Location: N.E.
Posts: 36
memaggiem RepRank 0
Default Re: Redirect a lot of files using a wildcard?

Quote:
Originally Posted by incrediblehelp View Post
Where did you get this idea? Just all all 70 lines you will be fine.
I got this idea from logging into my Google Webmaster Tools and the big red WARNING in the Sitemap area saying "too many redirects"

I really don't want to spend time doing 70 lines of redirect for 70 (or more) different files, so I was hoping for a wildcard solution...you know something like

redirect 301 /xyz*.htm http://122222222.com/newdir/xyz*.htm

or something like that! Is it possible?

Thanks!
Reply With Quote
  #4 (permalink)  
Old 04-24-2008, 07:54 AM
incrediblehelp's Avatar
incrediblehelp incrediblehelp is offline
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,129
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: Redirect a lot of files using a wildcard?

Well that doesnt very normal. I have 1000s of redirects in my htaccess file sometimes and that works fine.
Reply With Quote
  #5 (permalink)  
Old 04-24-2008, 08:01 AM
memaggiem memaggiem is offline
WebProWorld Member
 

Join Date: Apr 2004
Location: N.E.
Posts: 36
memaggiem RepRank 0
Default Re: Redirect a lot of files using a wildcard?

Really? You have a ton of 301s? Hmmmm............ I only had 10! It was a big and bold warning too!

If I just submit a new sitemap to Google, would that suffice? Ya know, the time I'm spending looking for a solution is time I could have been doing the 301s! heehee Still, not sure that having all those 301's compacted into a nice wildcard would please the google machine either!
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
301 redirect of .doc files pdrew Search Engine Optimization Forum 8 08-28-2007 10:35 AM
Subster rejuvenator and wildcard subdomains on CPANEL freehits Web Programming Discussion Forum 4 04-28-2006 03:14 PM
Google Improves Wildcard Matching WPW_Feedbot Search Engine Optimization Forum 0 08-10-2005 11:00 AM
Wildcard DNS? MrLeN IT Discussion Forum 4 06-19-2005 01:29 PM
.EXE files? info107 Web Programming Discussion Forum 4 01-19-2004 07:39 AM


Search Engine Friendly URLs by vBSEO 3.0.0