1
nmshah
help with .htaccess redirection
  • 2009/10/15 5:20

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


I have had to move a particular section of one of my website to another website. I need some help with how to redirect the old url to the new one.

The old url was
http://makingdestiny.com/believe.item.1/positive-thinking-concept.html

The new url is
http://swayamsat.org/blog.item.1/positive-thinking-concept.html

There are 70 such articles. So is there a rewrite rule that can redirect all the old urls to the new ones

the pattern for all the redirected urls is same.

http://makingdestiny.com/believe is to be replaced byhttp://swayamsat.org.blog

the other part of the url remain same.

Hope i have been clear with the problem.

2
ghia
Re: help with .htaccess redirection
  • 2009/10/15 8:52

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try
Redirect permanent /believe http://http://swayamsat.org/blog

3
nmshah
Re: help with .htaccess redirection
  • 2009/10/15 17:15

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


Quote:
Redirect permanent /believehttp://swayamsat.org/blog


Thanks ghia,
but it does not seem to be working

It redirectshttp://makingdestiny.com/believe
to
http://swayamsat.org/blog

It also redirectshttp://makingdestiny.com/believe/
to
http://swayamsat.org/blog/

but it does not seem to be working for what I need

ie it is not redirecting

http://makingdestiny.com/believe.item.1/positive-thinking-concept.html
to
http://swayamsat.org/blog.item.1/positive-thinking-concept.html

4
ghia
Re: help with .htaccess redirection
  • 2009/10/15 19:15

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Humm, a dot.
Try
RedirectMatch permanent /believe(.*) http://swayamsat.org/blog$1


5
nmshah
Re: help with .htaccess redirection
  • 2009/10/15 20:38

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


works partly as it takes us to the right page but the url it shows is
http://swayamsat.org/blog.item.1/positive-thinking-concept.html?seoOp=item&seoArg=1

6
ghia
Re: help with .htaccess redirection
  • 2009/10/15 20:56

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Probably, there are also other rewrite instructions that add these?
Could be in either site (SEO of SmartSection?).

7
nmshah
Re: help with .htaccess redirection
  • 2009/10/15 21:27

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


Yep I am using publisher with .htaccess rewrite on.

Anyways thanks a lot since there are less then 100 urls I will add redirect rule for each of them individually.

Thanks again Ghia, for all the help. May god bless you

Login

Who's Online

134 user(s) are online (73 user(s) are browsing Support Forums)


Members: 0


Guests: 134


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits