![]() | | ||||||||
| | #1 |
| Advanced Warrior War Room Member Join Date: Aug 2008 Location: Baguio City , Philippines.
Posts: 676
Thanks: 17
Thanked 32 Times in 26 Posts
|
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] 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] myurl.com: The Leading Domain Names Site on the Net Thanks for the help |
| Cheap Spun Articles for only $0.29 per spun article. Link Building Services The BEST & Cheapest solution of your link building needs | |
| | |
| | #2 | |
| Active Warrior Join Date: Jun 2009
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
|
what you mean about redirect? are its like this Quote:
| |
| | |
| | #3 |
| Lisa Dozois War Room Member Join Date: Jan 2006 Location: Florida, USA.
Posts: 612
Thanks: 85
Thanked 221 Times in 110 Posts
|
What's not working?
|
|
-- Lisa G
| |
| | |
| | #4 |
| http://covertlinks.com Join Date: Oct 2004 Location: Creston, BC, Canada
Posts: 197
Thanks: 0
Thanked 3 Times in 3 Posts
|
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] |
| | |
| | |
| | #5 |
| Veteran Marketer War Room Member Join Date: Jul 2009 Location: Portland, OR
Posts: 516
Blog Entries: 10 Thanks: 46
Thanked 80 Times in 51 Posts
|
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 | |
| | |
| | #6 |
| Active Warrior Join Date: Jan 2009 Location: San Diego
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
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 |
| | |
| | #7 |
| Active Warrior War Room Member Join Date: Jul 2009
Posts: 56
Thanks: 2
Thanked 3 Times in 3 Posts
|
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! |
| | |
| | #8 |
| Warrior Member Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
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.
|
| | |
| | |
| | #9 |
| Warrior Member Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
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.
|
| | |
![]() |
|
| Tags |
| red, redirect, urls |
| Thread Tools | |
| |
![]() |