1
solomongaby
SEO Hack for news Module
  • 2007/11/10 16:58

  • solomongaby

  • Just popping in

  • Posts: 5

  • Since: 2007/10/4


After reading about people interest in SEO ... and urlrewriting for the XOOPS news Module i decided to write an article about how to achive that.

The article explains how to go from
http://www.website.com/module/news/index.php?storytopic=5
to
http://www.ps2home.co.uk/ps2-c5-reviews.html
where ps2 is the module's name and reviews the topic name

and from
http://www.website.com/modules/news/article.php?storyid=24
to
http://www.website.com/ps2-191-the-simpsons-game.html
where ps2 is the module's name and the-simpsons-game is the articles name

Curently we are working on an installer to make easyer for people to install the hack.

You can find the article at GSDesign Blog

2
FaYsSaL
Re: SEO Hack for news Module
  • 2007/11/10 22:22

  • FaYsSaL

  • Not too shy to talk

  • Posts: 115

  • Since: 2006/1/2 2


woow that great
but can we have this tuto for a linux system.
also i dont know if it can be solved or there is no problems with search bot . i've found a bug on ur site!
http://www.ps2home.co.uk/ps2-187-the-quest-for-aladdin%E2%80%99s-treasure.html
' can special charactere be replaced on the url?

3
mesol
Re: SEO Hack for news Module
  • 2007/11/11 1:51

  • mesol

  • Not too shy to talk

  • Posts: 168

  • Since: 2006/4/19


hi,

for your rewrite rules, is it for ISS not for Apache? Because your rewrite rules give me "500 Internal Sever Error"

4
mesol
Re: SEO Hack for news Module
  • 2007/11/11 1:55

  • mesol

  • Not too shy to talk

  • Posts: 168

  • Since: 2006/4/19


i make some testing, this rewrite rules for apache

#StateRewriteRule /testrewrite.html / [I,L]
RewriteRule ^.*/oss-c([0-9]*)-[^/]+.html /modules/news/index.php?storytopic=$1 [L]
RewriteRule ^.*/oss-([0-9]*)-[^/]+.html /modules/news/article.php?storyid=$1 [L]

replace oss with yours.

5
solomongaby
Re: SEO Hack for news Module
  • 2007/11/11 8:48

  • solomongaby

  • Just popping in

  • Posts: 5

  • Since: 2007/10/4


I have added the linux rewrinting in the post.
As far as special caracters .... i have added ' and " as special characters to be replaced. If you find any more character, you can just add them in the function make_url().
Or you can post them here and i will add them.

Thank you all for you're reply's

6
mesol
Re: SEO Hack for news Module
  • 2007/11/14 5:20

  • mesol

  • Not too shy to talk

  • Posts: 168

  • Since: 2006/4/19


the url working but its keep going to my homepage. not to the article.

7
solomongaby
Re: SEO Hack for news Module
  • 2007/11/15 20:13

  • solomongaby

  • Just popping in

  • Posts: 5

  • Since: 2007/10/4


can i have you're site URL so we can try and fix you're problem

8
marcionline
Re: SEO Hack for news Module

I've tried your hack but with no success.

I use XOOPS 2.2.4, news 1.53 and my server is running Apache.

URLs are rewritten but when I click on them I get 404 error.

I use a subdirectory folder (http://www.mistershare.org/home/). Would be that the reason?

Rewritten URL: http://www.mistershare.org/home/noticia-132-trailer-bee-movie.html
Original URL: http://www.mistershare.org/home/modules/news/article.php?storyid=132

I have a doubt: Do I need to put the Rewrite rules in htaccess inside news folder (/modules/news/.htaccess) or in XOOPS root directory (/.htaccess)?

Thanks in advance!

9
mesol
Re: SEO Hack for news Module
  • 2007/11/16 13:00

  • mesol

  • Not too shy to talk

  • Posts: 168

  • Since: 2006/4/19


my URL - http://www.erzwan.com

I'm using Suin's simplified URL, but using disable of it, the output still problem.

10
solomongaby
Re: SEO Hack for news Module
  • 2007/11/18 0:47

  • solomongaby

  • Just popping in

  • Posts: 5

  • Since: 2007/10/4


marcionline : you have to put the Rewrite rules in the root .htaccess file

mesol :
My guess without seing the code is that some how the 2 hacks are in conflict with each ever. To solve you're problem contact me by IM at you're choise ( yahoo, MSN, ICQ ) that you can find in my profile

Login

Who's Online

413 user(s) are online (296 user(s) are browsing Support Forums)


Members: 0


Guests: 413


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