1
angelomorto
SEO Redirect 301 on Smartsection

Hi guys,
I need a hand to rewrite 301.
I have a website hosted on Aruba.it and my url, for example ...

http://www.miosito.it/modules/smartsection/item.php?id=123

I want to change in....

http://www.miosito.it/articles/123

anybody know what to write into .htaccess file???

I tried different solutions but I have not solved the problem!

2
Peekay
Re: SEO Redirect 301 on Smartsection
  • 2011/7/29 8:00

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


You could try this:

Options +FollowSymlinks
RewriteEngine on

RewriteCond 
%{REQUEST_URI}  ^/modules/smartsection/item.php$
RewriteCond %{QUERY_STRING} ^id=([0-9]*)$
RewriteRule ^(.*)$ http://www.miosito.it/articles/%2/? [R=301,L]
A thread is for life. Not just for Christmas.

3
angelomorto
Re: SEO Redirect 301 on Smartsection

I try this solution, but don't work well...
The result is...
http://www.miosito.it/articles//

Quote:

Peekay wrote:
You could try this:

Options +FollowSymlinks
RewriteEngine on

RewriteCond 
%{REQUEST_URI}  ^/modules/smartsection/item.php$
RewriteCond %{QUERY_STRING} ^id=([0-9]*)$
RewriteRule ^(.*)$ http://www.miosito.it/articles/%2/? [R=301,L]

4
Peekay
Re: SEO Redirect 301 on Smartsection
  • 2011/8/2 12:51

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Sorry, my typo. Should be var 1 in the rewrite rule, not 2.

RewriteRule ^(.*)$ http://www.miosito.it/articles/%1/? [R=301,L]
A thread is for life. Not just for Christmas.

Login

Who's Online

315 user(s) are online (250 user(s) are browsing Support Forums)


Members: 0


Guests: 315


more...

Donat-O-Meter

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

Latest GitHub Commits