iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-06-2006, 05:13 AM
mlevenhagen's Avatar
WebProWorld Veteran
 
Join Date: Sep 2004
Location: Wisconsin, United States
Posts: 394
mlevenhagen RepRank 0
Default ReWrite... Should the Old Redirect to the New?

This question is in regards to my WordPress Blog..

I finally came to my senses and created a custom Permalink.. So my pages won't have /?p=12 etc... They'll now have the topic title + .htm...

In order to do this, the method I followed told me to first change the Permalink in the admin panel and then go to the .htaccess file and add some code...

Quote:
RewriteEngine On
RewriteBase /
RewriteRule ^category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [QSA]
RewriteRule ^category/?(.*) /index.php?category_name=$1 [QSA]
RewriteRule ^author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2 [QSA]
RewriteRule ^author/?(.*) /index.php?author_name=$1 [QSA]
RewriteRule ^([_0-9a-z-]+).htm([0-9]+)?/?$ /index.php?name=$1&page=$2 [QSA]
RewriteRule ^([_0-9a-z-]+).htm/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?name=$1&feed=$2 [QSA]
RewriteRule ^([_0-9a-z-]+).htm/trackback/?$ /wp-trackback.php?name=$1 [QSA]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1 [QSA]
RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1&withcomments=1 [QSA]
Everything actually seems to be working splendid! But, I noticed that when you click on the old indexed link that it lands on that original page.

Now my understanding of rewrite, I thought it would change the URL in the address bar?? Right? Redirect the visitor...

Here's one of the pages I'm referring to... I'll provide 2 links to help see what's happening...

This is the original page...

http://blog.iiibusiness.com/?p=85

This is the new Permalink URL:

http://blog.iiibusiness.com/i-bargai...or-a-penny.htm

If you click on that first link, the address bar doesn't change, but then if you click on the title or browse the blog, it will revert to the new permalink URLs...

------------

My other concern is that I might have done something wrong and it will hurt me from an SEO standpoint... Dup content.

Any insight would be GREATLY appreciated!

Thanks in advance!
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:11 AM.



Search Engine Optimization by vBSEO 3.3.0