HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Another redirect question

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#75199 (In Topic #15595)
Avatar

Community saint

I had a page that has been indexed by Google and shows up in the first page of SERPs which I have moved. I figure that I can just do a simple redirect from the old address to the new address. I have this working but just wanted to ask one question: Is it better to put this brute-force redirect before or after the rewrite rules block in the .htaccess or does it not make a difference?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#75204
Avatar

Community saint

Considering that the .htaccess rules are executed every time there is any navigation on your site (both internal and external), then it does not make sense for it to be at the top of the rule list because it will not be matched that often at all in the grand scheme of things.

When you have multiple non-final rules it may not necessarily be easy to find the right spot to put this redirect.

You also really probably shouldn't be hiding one-off hard-coded rules in the middle of general rules, no matter how well you may comment the .htaccess.

Also note that in practical real world terms its going to have a negligible impact on performance where ever you place it.

In conclusion, I say just put the thing in front of your other re-write rules (except maybe for www), and leave it at that.

(Sometime what may be technically the wrong thing to do, may turn out to be the best practical solution).

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75206
Avatar

Community saint

Hey temp-

That's what I did. I figured that I only really need the rule for Google (I doubt many visitors bookmarked that specific page). So I figure in a couple of months I should be able to get rid of it since Google will have noted the new location.

Thanks for your help.

Bob
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: