Jump to content

Rewrite redirect help PLEASE.


XGCommander

Recommended Posts

Hello. I currently have a new system of articles in place on my dev server. I need to make it so that old article links still work so they need to redirect to the new article style and maintain the new url, not just having a simple redirect by changing the rules of the old article rewrite.

 

Current (old) URL: http://www.explicitgamer.com/blog/2010/04/corrupted-by-games-yeah-right/

New (dev) URL: http://www.explicitgamer.com/article/corrupted-by-games-yeah-right

 

So I need a rewrite rule that will redirect people from the old url to the new url. I've been trying but I just can't figure it out. This is probably due to my poor regex skills. Any help or resources would be most appreciated.

 

Also, while i'm here. Is it better to have a trailing slash in urls (like the old one) or is the new one fine?

Link to comment
https://forums.phpfreaks.com/topic/199589-rewrite-redirect-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.