Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-22-2011, 06:14 PM   PM User | #1
kaus
New to the CF scene

 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
kaus is an unknown quantity at this point
301 all pages except the homepage - need an exception

Hi

A friend suggested I post here for some help. I've been trying to 301 an entire site to a new url with no luck. The site has 10,000 urls, and because of that I'm trying to figure out a way to do the following without creating a massive htaccess file

The articles are in the root and not in directories, so I need a rewrite that allows me to 301 all articles to a new url, and a separate rewrite that lets me 301 the homepage to a separate url

Like this

/articles.html to http://www.newsite.com/articles/

oldsite.com to http://www.newsite.com/

I appreciate any help anyone can give. I was able to exclude the homepage from redirecting, but couldn't get the two rewrites to work together.

Is this possible?
kaus is offline   Reply With Quote
Reply

Bookmarks

Tags
301 redirect, rewrite exceptions

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:52 PM.


Advertisement
Log in to turn off these ads.