University Web Developers

University Web Developers

So I realized the other day I might not be implementing redirects properly, and have been trying to Google something that matches my situation, but to no avail.

We set up a lot of redirects in order to create print-friendly shortened URLs that are easier to type. For example, www.callutheran.edu/majors redirects to http://www.callutheran.edu/admission/undergraduate/academics/academ...

In a root .htaccess file, I do this:

Redirect /majors http://www.callutheran.edu/admission/undergraduate/academics/academ...

But every tutorial I've seen on Apache redirects tells you to use a code, such as 301 in the directive. However, in my case these are not permanent redirects - there is no old page. Its just a shorter version of the destination URL (I've been using the term 'aliases' - probably incorrectly). I'm also wondering if our current method would have any SEO side effects.

What do you think?

Views: 84

Replies to This Discussion

Hi Erik,

You will need to use the RewriteRule's passthrough [PT] flag to get the desired effect. It is a URL to file translator and does not indicate redirection to the browser.

The .htaccess file would look something like this. Note that the L indicates this is the last RewriteRule that should take place.

Visit http://www.uni-ulm.de/manual/en/mod/mod_rewrite.html for more options.

RewriteRule www.callutheran.edu/majors http://www.callutheran.edu/admis... [PT,L]
Actually, would you not want the 'R' (redirect) flag to pass the status code?

RewriteRule ^(.*)$ http://mynewdomain.com/$1 [R=301,L]

Oh.. and Erik, we use the term 'alias' on our campus. It does make it easy for marketing campaigns and also stats on how many people may be hitting the alias/redirect. At my college, we are using IIS with virtual directory 'alias' redirects.. and control the list there, but I have used the LAMP side using .htaccess for it also.
Hey Erik - The info provided so far has been good. I would add the following:
If you are actually planning to redirect the user to the original URL, it is a permanent redirect. 301 does not necessarily mean that the page moved (although that's been the meaning most commonly associated with it), it simply means that one URL should semi-permanently redirect users to another URL.

If you simply want to duplicate the content from the original URL on a page that's located at the short URL (or alias), then you need to look into the canonical link meta tag. This tag basically tells the search engines "I know the content on this page is a duplicate of the content found on another page. You can ignore this page in your index, as long as you index the original page."

Those are the two ways I would go about it (and have gone about it), at least. Good luck.
Thanks for the info everyone, much appreciated. Curtiss, I don't think we'll have any duplicate content issues because the browser won't stay at the short URL - the user will be redirected to the full URL before any content is sent. I would think search crawlers wouldn't be able to index the short URL for the same reason.

Steven, the PT flag makes sense to me, but it doesn't seem to be working on my system. I put the following in my htaccess file

RewriteRule www.callutheran.edu/americana http://www.callutheran.edu/neighbors/events/TheAmericanaExperience.php [PT,L]

and it causes a 404. I'm going to ask my IT team for some details on our Apache setup.

RSS

Elsewhere

Latest Activity

Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Fundamentally, a CMS allows you to publish and manage content for your website—but it has the capability to do so much more. "
yesterday
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Don’t begin a website redesign without first considering these trends! "
Tuesday
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Speaker call for proposals for #OUTC19 is officially open! "
Monday
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"There’s a high school student who is a great fit for your institution, yet never engages with your institution online and enrolls elsewhere. Why? Find out during our next webcast with Lance Merker as he dives into the 2018 E-Expectations Trend…"
Aug 10
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Your website needs a redesign and the project is catching momentum. Woohoo! But wait… have you considered your school’s IT needs and concerns? #StartWithTheCMS"
Aug 10
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Now available for free download! "
Aug 8
Profile IconMiesha, Megan Gonzalez and Aaron Claycomb joined University Web Developers
Aug 8
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Everything that prospective students want to know about your college or university is at their fingertips. So what happens if they don’t find the info on your website?"
Aug 7
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Knowing common terms will make it easier to talk all things design related. "
Aug 2
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Directories should be easy to find on your website and easy to navigate. Here’s a showcase of schools with great faculty and staff directories: "
Jul 31
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Is your digital presence not up to par? Maybe it’s time to #StartWithTheCMS."
Jul 27
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Ready to optimize conversions on your website? "
Jul 25
Monique George is now a member of University Web Developers
Jul 23
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"OU Mashup v2 is chock-full of features designed especially for higher ed. See what’s new! "
Jul 20
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Feeling overwhelmed about the idea of redesigning your college or university website? We’ve got you covered in our latest white paper! "
Jul 18
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Our OU Campus CMS allows you to prevent your content contributors from publishing a page unless it meets your preset accessibility requirements. "
Jul 13
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Another win for our customer support and training teams! "
Jul 12
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"What’s going on behind the scenes with your website? That’s what the Workflow Gadget in our OU Campus CMS is designed to track. "
Jul 6
Rob Peterson is now a member of University Web Developers
Jul 5
Rachel Mele commented on Lynn Zawie's group OmniUpdate
"Aligning your website with visitor intent is key. Join Matt from Ruffalo Noel Levitz in our next webcast about how to structure IA to connect with prospects."
Jul 2

UWEBD has been in existence for more than 10 years and is the very best email discussion list on the Internet, in any industry, on any topic

About

© 2018   Created by Mark Greenfield.   Powered by

Badges  |  Report an Issue  |  Terms of Service