Welcome to WebmasterWorld Guest from 23.22.182.29

Forum Moderators: phranque

Message Too Old, No Replies

redirection of indexed dynamic urls to static urls - will SE penalize it?

     
12:52 pm on May 19, 2012 (gmt 0)

New User

joined:May 3, 2012
posts: 23
votes: 0


hi,

I have a site running from almost 3 years with over 500 pages (same design but different content) dynamically made and all pages are indexed in google.

Now, i have made all pages statically (means the structure of the page, content will still fetch from db) but a static URL and planning to redirect all old dynamic url's to new static url's but now i fear if SE's will consider it as spamming as old dynamic url's are already indexed and new static pages will have same content.

What should i do to that SE's will consider this as same page and ill not loose by back-links.

Please suggest!
3:58 pm on May 19, 2012 (gmt 0)

New User

joined:May 13, 2012
posts: 20
votes: 0


Hi
You can make 301 redierects from old URLs to new URLs.
You can find on the net about 301 redirect.
5:17 pm on May 19, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


As soon as you redirect, the old page no longer exists and there's no duplicate.

You should redirect from old to new URL. Make sure that all old URLs, whether www or non-www, redirect to the new URL in a single hop.

You must avoid introducung a redirection chain.
4:48 am on May 21, 2012 (gmt 0)

New User

joined:May 3, 2012
posts: 23
votes: 0


Hi,

Thanks for your response....

Pls suggest, which way of redirect should i choose?

1. through .htaccess file
2. redirect through scripting in page
3. redirect by control panel.

Pls guide.
11:15 am on May 21, 2012 (gmt 0)

New User

joined:May 13, 2012
posts:20
votes: 0


Hi,
Personal, I use redirect 301 from .htaccess.
This is also the way recomended by google.
12:36 pm on May 21, 2012 (gmt 0)

New User

joined:May 3, 2012
posts: 23
votes: 0


Hi,

I'm using to redirect in htaccess which is

Redirect 301 /gases.php?cid=1&gases=nitrogen http://www.example.com/gases/nitrogen.php

but this redirect is not working.

pls suggest
12:52 pm on May 21, 2012 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


the mod_alias Redirect directive only works on the url path.
if you need to also look at the query string you must use mod_rewrite and a combination of RewriteCond and RewriteRule directives.

one more thing - as g1smd mentioned in one of your other threads,
This is exactly the right time for you to "go extensionless".:
http://www.webmasterworld.com/apache/4448879.htm [webmasterworld.com]

therefore, i would suggest you redirect to http://www.example.com/gases/nitrogen (with no .php)
1:01 pm on May 21, 2012 (gmt 0)

New User

joined:May 3, 2012
posts: 23
votes: 0


Hello Phranque,

Thanks for your prompt response and telling me to go without extension.

But, i have very little knowledge about using all this scripts.

Will you please send me the scripting code for same which ill directly upload on my .htaccess file.

Thanks in advance.

Gagan
4:28 pm on May 21, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

joined:Apr 9, 2011
posts:12704
votes: 244


Will you please send me the scripting code for same which ill directly upload on my .htaccess file.

Nope, you're in the wrong Forum. Here we make you do it yourself so you learn how.

There are two chunks of boilerplate that get posted periodically (by me, because I wrote them). One's about query strings and the other is about the redirect-to-rewrite two-step. Between the two of them you should get the general idea. And then you just have to write your specific code. That's the easy part.
5:15 am on May 23, 2012 (gmt 0)

New User

joined:May 3, 2012
posts: 23
votes: 0


Hi and thanks Lucy...

finally with your help and information from boilerplate I'm able to write my code.

Finally, the code I'm using is:

RewriteCond %{QUERY_STRING} ^cid=9&gases=nitrogen$
RewriteRule ^purity\.php$ http://example.com/gases/nitrogen.php? [R=301,L]

but, im not able to go EXTENSIONLESS.

pls let me know how to do that.
7:28 am on May 23, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


Redirect to URL without .php in htaccess when URL with parameters is requested.

Link to URL without .php from the page of your site.

Set up an internal rewrite to map extensionless URL requests to the internal path and file that will serve the content.
8:34 am on May 23, 2012 (gmt 0)

New User

joined:May 3, 2012
posts: 23
votes: 0


Hi,

This is really out of syllabus for me brother...pls help me out here
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members