Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 06-28-2009, 07:46 PM   #1
Advanced Warrior
War Room Member
 
edpudol1973's Avatar
 
Join Date: Aug 2008
Location: Baguio City , Philippines.
Posts: 676
Thanks: 17
Thanked 32 Times in 26 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Yahoo to edpudol1973 Send a message via Skype™ to edpudol1973
Default How can I redirect my old urls to new urls

I want to redirect old urls to new urls how can I do this?

This is the old mod rewrite I am using
Code:
RewriteRule ^([A-Za-z0-9_-]*)-([0-9]*)-([0-9]*)-([0-9]*)-(.*).html$  article.php?categoryname=$1&catid=$2&id=$3&views=$4&title=$5 [L,NC]
Example url:
myurl.com: The Leading Domain Names Site on the Net

And the new mod rewrite is

Code:
RewriteRule ^([A-Za-z0-9_-]*)-([0-9]*)-([0-9]*)-([0-9]*)/(.*).html$  article.php?categoryname=$1&catid=$2&id=$3&views=$4&title=$5 [L,NC]
example of New URL format to be redirected the old url is

myurl.com: The Leading Domain Names Site on the Net

Thanks for the help

edpudol1973 is offline   Reply With Quote
Old 07-05-2009, 06:36 AM   #2
Active Warrior
 
Join Date: Jun 2009
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
Default Re: How can I redirect my old urls to new urls

what you mean about redirect? are its like this

Quote:
<html><head>
<meta http-equiv="refresh" content="0;url=http://www.yourURL.com/">

</head></html>

hotscode is offline   Reply With Quote
Old 07-05-2009, 11:22 AM   #3
Lisa Dozois
War Room Member
 
lisag's Avatar
 
Join Date: Jan 2006
Location: Florida, USA.
Posts: 612
Thanks: 85
Thanked 221 Times in 110 Posts
Social Networking View Member's Twitter Profile 
Default Re: How can I redirect my old urls to new urls

What's not working?

-- Lisa G
lisag is offline   Reply With Quote
Old 07-06-2009, 10:56 AM   #4
http://covertlinks.com
 
ziffgone's Avatar
 
Join Date: Oct 2004
Location: Creston, BC, Canada
Posts: 197
Thanks: 0
Thanked 3 Times in 3 Posts
Default Re: How can I redirect my old urls to new urls

You might have to escape that forward slash:

Code:
RewriteRule ^([A-Za-z0-9_-]*)-([0-9]*)-([0-9]*)-([0-9]*)\/(.*).html$  article.php?categoryname=$1&catid=$2&id=$3&views=$4&title=$5 [L,NC]

ziffgone is offline   Reply With Quote
Old 07-06-2009, 11:43 AM   #5
Veteran Marketer
War Room Member
 
Jeremy Morgan's Avatar
 
Join Date: Jul 2009
Location: Portland, OR
Posts: 516
Blog Entries: 10
Thanks: 46
Thanked 80 Times in 51 Posts
Social Networking View Member's Myspace Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via ICQ to Jeremy Morgan
Default Re: How can I redirect my old urls to new urls

ziffgone is right, you do need to escape it.

Also, if you want to preserve your previously crawled pages in search engines, you should consider using a 301 redirect as well.

redirect 301 /oldfolder/oldfile.htm /newfolder/newfile.htm

Jeremy Morgan, SEO / Internet Marketer
My Portland Web Design Firm
Check out my SEO Blog for news, tips and tutorials
Jeremy Morgan is offline   Reply With Quote
Old 07-06-2009, 12:09 PM   #6
Active Warrior
 
Join Date: Jan 2009
Location: San Diego
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default Re: How can I redirect my old urls to new urls

just go to godaddy or whereever you got your domain and select the re-direct option. It is easy, only takes a few minutes and happens ususally within the hour.

Hope this helps

Dave
GetStreetSmart is offline   Reply With Quote
Old 07-09-2009, 05:13 AM   #7
Active Warrior
War Room Member
 
Join Date: Jul 2009
Posts: 56
Thanks: 2
Thanked 3 Times in 3 Posts
Default Re: How can I redirect my old urls to new urls

I have a simple question, regarding the .htacces in Drupal. I want to redirect my users from my old URLs (from the time before I used drupal) to the new URLs in Drupal. Generally I use the following:
Redirect /old-url.php domainn.com/new-url
But with my current settings, this does not work and redirects me to something like this:
Redirect /old-url.php domain.com/new-url?q=old-url.php
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

BUT: I cannot change this rule, otherwise my website does not work properly anymore. Does anyone know, what I can do, to redirect my visitors (and search engines) from my old URL to the new URL without changing this exact and important URL??
Any Idea and Help Is Highly Appreciated!!!
Thank you very much!
zain654321 is offline   Reply With Quote
Old 07-09-2009, 05:51 PM   #8
Warrior Member
 
Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: How can I redirect my old urls to new urls

Ohh, I was looking for this code. I have used my cpanel but did not find this code so that I can create a page with ads which will redirect to another page after a time. Thank you so much for your kind support.

PONTING is offline   Reply With Quote
Old 07-10-2009, 01:48 AM   #9
Warrior Member
 
Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: How can I redirect my old urls to new urls

If you are using regex in your page means then you can set the redirect value to true and can use the orginal url and the old url into the rewrite syntax.
nitinjain is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
red, redirect, urls

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 04:50 AM.