1
Style
How to redirect News modul 301 redirect to xnews ?
  • 2010/7/5 9:30

  • Style

  • Just popping in

  • Posts: 5

  • Since: 2010/5/1 2


Hello everyone!

First, sorry for the bad English.


Xnews Module nice job.

How do I redirect 301 news module to url friendli xnews seo url?

I installed the module xnews
which imported the news module tables.

The news module root directory I have a 301 htacces redirect

but do not want to index the xnevs seo friendli url .

Already you begin to fall off as it hits so I think duplication
what the google penalty.

How can I do that, the news module url immediately redirect
the corresponding xnews seo friendly url address.

I'm sorry if it is difficult to understand the problem, it would be good if you are having a Hungarian man.

Ples help mi.

2
bjuti
Re: How to redirect News modul 301 redirect to xnews ?
  • 2010/7/5 20:57

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Try something like (not tested):

RewriteRule ^http://www.yoursite.com/modules/news/$ http://www.yoursite.com/modules/xnews/$1 [R=301,L]

Read more here:
http://www.gnc-web-creations.com/301-redirect.htm

3
Style
Re: How to redirect News modul 301 redirect to xnews ?
  • 2010/7/9 10:12

  • Style

  • Just popping in

  • Posts: 5

  • Since: 2010/5/1 2


Thank you for your help,

The
xnevs module is configured for SEO friendly mod.

The problem is that the page in two url is available.
Example: hxxp://www. tetovalasatlasz. net/modules/xnews/article.php?storyid=58


http://www.tetovalasatlasz.net/tetovalas-mintak-jelentesei/articles.58/Skin-Workshop-Tattoo--Body-Piercing-studió-.html

How it can be resolved the redirect the original url to seo friendli url address?

4
bjuti
Re: How to redirect News modul 301 redirect to xnews ?
  • 2010/7/9 13:45

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


If you want to exclude duplicate content from robots put in robots.txt [in root of your site] something like this:

Disallow: modules/xnews/

If you want to have just sef links instead of numbered ones, add something like this in header.php of you xnews module:

if (strpos(getenv('REQUEST_URI'), '/modules/xnews/') === 0) {
    
$oldurl getenv('REQUEST_URI');
    
$newurl str_replace("modules/xnews""news"$oldurl);
    
header("HTTP/1.1 301 Moved Permanently");
    
header("Location: $newurl");
}


Or something similar. Check this out.

Login

Who's Online

293 user(s) are online (57 user(s) are browsing Support Forums)


Members: 0


Guests: 293


more...

Donat-O-Meter

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

Latest GitHub Commits