51
stelian
Re: Rewriting module URLs
  • 2006/2/11 0:20

  • stelian

  • Just popping in

  • Posts: 87

  • Since: 2005/12/17


if i am using Simplified URL cand i use hack too? Or if use this i will not need to use simplified URL anylonger? Witch one is the best for SEO?

I want to rename "newbb" to "forum", xcgall to gallery.. and "modules" to "xyz" (is this possible too?).

I am interested specialy in xyz.

Please help me.
Best regards.

52
disky
Re: Rewriting module URLs
  • 2006/2/11 8:18

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hello Stelian

Simplified URL is that a hack/module for XOOPS ?

If so i don't use it, and rewriting the URL's using mod_rewrite directly has improved on my Search Engine Rating.

I also made sure that that headline for each article is shown in the URL and the page title.

You can see it in function on http://www.xray-mag.com

/Søren

53
FaYsSaL
Re: Rewriting module URLs
  • 2006/2/11 13:45

  • FaYsSaL

  • Not too shy to talk

  • Posts: 115

  • Since: 2006/1/2 2


Quote:

disky wrote:
Hello Stelian

Simplified URL is that a hack/module for XOOPS ?

If so i don't use it, and rewriting the URL's using mod_rewrite directly has improved on my Search Engine Rating.

I also made sure that that headline for each article is shown in the URL and the page title.

You can see it in function on http://www.xray-mag.com

/Søren


verry nice !
can i know how have u done this
thx :)

54
disky
Re: Rewriting module URLs
  • 2006/2/11 14:08

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hi there

I did this (taken from a FAQ page https://xoops.org/modules/smartfaq/faq.php?faqid=362)

The rest of that FAQ i didn't use because it did not suit my need.

FROM FAQ:

We are going to change several tags in the HTML and add a couple more:

So change (please note I have removed opening and closing "<" and ">" from the statements so this renders in HTML, you will need to fix the tags:

From:
meta name="keywords" content="<{$xoops_meta_keywords}>" /
To:
meta name="keywords" content="<{$xoops_pagetitle}>, <{$xoops_meta_keywords}>" /

From:
meta name="description" content="<{$xoops_meta_description}>" /
To:
meta name="description" content="<{$xoops_pagetitle}>, <{$xoops_meta_description}>" /

From:
body>


To:
body>
noscript> h1><{$xoops_pagetitle}> /h1> /noscript>

From:
img src="<{$xoops_imageurl}>images/logo.gif"
To:
img src="<{$xoops_imageurl}>images/logo.gif" alt="<{$xoops_pagetitle}>"

From:
{$xoops_footer}> |

To:
{$xoops_footer}> | a href="http://www.your-domain-here.com/" target="_self"> <{$xoops_pagetitle}> /a

FROM FAQ END:


Then on every relevant pagetemplate i took the title of a webpage and added it to the URL.

So that:
http://www.xray-mag.com/article/159
Turns into
http://www.xray-mag.com/article/159/Ferry_sinks_in_Red_Sea_
Because the headline is 'Ferry sinks in red sea'

And of course the mod_rewrite changes i have mentioned earlier in this thread.

Hope this helps.

55
FaYsSaL
Re: Rewriting module URLs
  • 2006/2/11 14:18

  • FaYsSaL

  • Not too shy to talk

  • Posts: 115

  • Since: 2006/1/2 2


ty ,i will try :)

56
stelian
Re: Rewriting module URLs
  • 2006/2/11 14:36

  • stelian

  • Just popping in

  • Posts: 87

  • Since: 2005/12/17


Hi disky.

This hack Simplified URLs ,which is based on ShotURLs released by reynaldo, converts XOOPS URLs into shorter and static ones that can be indexed by search engines.

More details https://xoops.org/modules/newbb/viewtopic.php?topic_id=30205&forum=14

Can i rename "modules" to "xyz"? Please

57
disky
Re: Rewriting module URLs
  • 2006/2/11 14:58

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hi Stelian

Thanks for the link, ill look into later.

Yes you can rename 'modules' to 'xyz' by using mod_rewrite

Take a look at the examples earlier in this thread. There should be some examples on how to do something that is similar to what you want, if not. Post what the URL is now, and how you would like it to be, and i'll try to make a mod_rewrite for you.

58
stelian
Re: Rewriting module URLs
  • 2006/2/11 20:59

  • stelian

  • Just popping in

  • Posts: 87

  • Since: 2005/12/17


Hello disky
I read all topic and there is nothing like this

I want http://www.buzaulive.ro/modules/ to be
http://www.buzaulive.ro/buzau/

The other modules i can change by myself, but this one, i can't figure it out.

This hack is working for xcgal in cbb too? (If yes, i think i will remove Simplified URL)

Simplified URL doesn't work with xcgal and other modules that use Java scripts.

Please excuse my bad english.

Many thanks in advance.

59
disky
Re: Rewriting module URLs
  • 2006/2/12 18:26

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


ReWriteRule /modules /buzau [L]

Should do it

You can also try with a [R] instead of [L]

One of the rewrites the URL like redirect, the other hides it, can't test which one is which at the moment.

60
stelian
Re: Rewriting module URLs
  • 2006/2/12 21:36

  • stelian

  • Just popping in

  • Posts: 87

  • Since: 2005/12/17


Soryy but it is not working. I'm geting a Page not found. Thanks for your support.

Login

Who's Online

197 user(s) are online (93 user(s) are browsing Support Forums)


Members: 0


Guests: 197


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