beazt
Power Member
- Oct 29, 2009
- 768
- 1,259
Need a little help with URL redirection. Instant $10 by paypal to the first person who solves this for me
A page of my website goes like this:
Now, I want to rewrite it as follows:
I did this by adding this code to my .htaccess file:
At this stage, the page loads both by entering the old as well as the new URL
Now the old URL had about 100+ backlinks and PR of 1 which I didn?t want to lose. So I used a simple 301 redirect to transfer the old URL?s PR and link juice to the new URL as follows:
At this stage the trouble begins.
When I enter the new URL, the page loads just fine. However, when I enter the old URL into the browser, it just redirects to the home page.
Also, in place of manually entering the old URL, if I navigate to the page by clicking on the link on the website, the page loads but the URL is shown as follows:
Obviously there is something wrong with it. So my question this - how do you first re-write a URL and then 301 redirect the old URL to the new one? Or is it the wrong way of doing this?
A page of my website goes like this:
Code:
www.domain.keyword2-keyword1.html
Code:
www.domain.keyword1-keyword2.html
Code:
RewriteRule (.*)keyword1-keyword2.html keyword2-keyword1.html
At this stage, the page loads both by entering the old as well as the new URL
Now the old URL had about 100+ backlinks and PR of 1 which I didn?t want to lose. So I used a simple 301 redirect to transfer the old URL?s PR and link juice to the new URL as follows:
Code:
Redirect 301 /old.html http://www.domain.com/new.html
At this stage the trouble begins.
When I enter the new URL, the page loads just fine. However, when I enter the old URL into the browser, it just redirects to the home page.
Also, in place of manually entering the old URL, if I navigate to the page by clicking on the link on the website, the page loads but the URL is shown as follows:
Code:
http://www.domain.com/keyword1-keyword2.html[B]?URL=keyword2-keyword1[/B]