Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Just got to the end of a site build and the client is now saying the original site URL's need to stay the same and do not want to do 301 redirects due to loss of link juice.

The structure of the site has changed so not possible to match the URL structure. I have been trying to figure out how to rewrite the URL's so that they stay the same in the address bar but map to different content.

As an example

Old URL: advisories/sos-12-11

New WordPress rewritten URL: relateditem/sos-12-11

Have tried:

RewriteRule ^advisories/([A-Za-z0-9-]+)$ index.php?relateditem=$1 [L]

With Permalinks set to custom (/%postname%) this maps through to the right location but changes the address in the address bar.

With Permalinks set to default it just maps to the home page and does not change the address bar.

Seems the two are interacting but cannot figure out how. Any help greatly appreciated!

share|improve this question
1  
Why do you think 301s are a problem? google.com/search?q=301+redirect+link+juice Especially relevant: searchengineland.com/… –  s_ha_dum Apr 8 '13 at 13:35
    
Yeah, @s_ha_dum is spot on. Check out support.google.com/webmasters/bin/… as well. However, for purely academic reasons, you could accomplish this by using a post meta field to store a permalink and essentially use manual permalinks for your content. It's a terrible idea, though. –  Matthew Boynes May 23 '13 at 20:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.