xoops forums

tatane

Just can't stay away
Posted on: 2009/2/18 10:38
tatane
tatane (Show more)
Just can't stay away
Posts: 649
Since: 2008/5/6 1
#1

url rewrite

hello


I followed the procedure plugins of dugris but I would go further.

Thanks to plugins, I could change my address gender http://www.monsite.com/modules/catads by http://www.monsite.com/Titre-que-je-définis

I'd like to go further, I would now like to replace http://www.monsite.com/Titre-que-je-définis/adsitem.php?ads_id=126 by http://www.monsite.com/Titre-que-je-définis/nom-de-la-catégorie/numero-de-l-annonce


How?

webmystar

Friend of XOOPS
Posted on: 2009/2/18 11:48
webmystar
webmystar (Show more)
Friend of XOOPS
Posts: 415
Since: 2008/6/23
#2

Re: url rewrite

this is the optimal url structure, but i think you must waiting for this feature, or you can hack the original XoRewrite Code. this is complex.

tatane

Just can't stay away
Posted on: 2009/2/18 12:05
tatane
tatane (Show more)
Just can't stay away
Posts: 649
Since: 2008/5/6 1
#3

Re: url rewrite


what XoRewrite code hack you speak?

elsanto

Just popping in
Posted on: 2009/2/19 0:29
elsanto
elsanto (Show more)
Just popping in
Posts: 18
Since: 2009/1/5 1
#4

Re: url rewrite


Tatan sir: you search catads my system?
http://www.guiasexo.com.ar/modules/catads/
I do not use XoRewrite.
Reforms to the module, will be explained and published soon in the forum of the Spanish community esxoops.com

deka87

Friend of XOOPS
Posted on: 2009/2/19 8:23
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#5

Re: url rewrite

elsanto, nice girls and nice hack. how did you manage to do this? ( I mean .html urls?!) Please teach me. I am not really good in Spanish, will you explain this in English?
Mind anchors

elsanto

Just popping in
Posted on: 2009/2/19 20:20
elsanto
elsanto (Show more)
Just popping in
Posts: 18
Since: 2009/1/5 1
#6

Re: url rewrite


Mr deka87: In this post we will explain in Spanish how to modify the module Mr deka87: In this post we will explain in Spanish how to modify the module catadscatads

At the end of the module will post with all the improvements as we have done with the module news seo EN ES FR 1.63

tatane

Just can't stay away
Posted on: 2009/2/20 8:21
tatane
tatane (Show more)
Just can't stay away
Posts: 649
Since: 2008/5/6 1
#7

Re: url rewrite


it looks like what I want to do but to Catads What is lasetnews?

joat

Just popping in
Posted on: 2009/3/3 16:52
joat
joat (Show more)
Just popping in
Posts: 19
Since: 2009/3/3 0
#8

Re: url rewrite

Quote:
deka87 wrote:
I am not really good in Spanish, will you explain this in English?


You could use http://www.google.com/language_tools?hl=en
to translate almost any site in the world ;)

joat

Just popping in
Posted on: 2009/3/3 17:11
joat
joat (Show more)
Just popping in
Posts: 19
Since: 2009/3/3 0
#9

Re: url rewrite

Quote:
elsanto wrote:
At the end of the module will post with all the improvements as we have done with the module news seo EN ES FR 1.63


Nice job ! Tnx !
BTW, thanks to google again, I translate your file seo.rtf to english. If somebody interesting in that, here you go:

===========================================
Quote:

What is SEO for News?
=============================
See the following URL
http://www.esxoops.com/modules/news/article.php?storyid=803

And below after activating SEO friendly URLs
http://www.esxoops.com/noticias.item.803/entrevista-a-julionc.html

It is found that the latter is more desired by the search engines.
Can significantly increase the search engine traffic to your site.

How do I enable SEO for News?
======================================
Should be defined in <xoops_root>/mainfile.php : define('news_seo_enable', 'rewrite');
as the following example shows
--------------------------------------------------------------------
Define "XOOPS_GROUP_ADMIN"'1');
Define "XOOPS_GROUP_USERS"'2');
Define "XOOPS_GROUP_ANONYMOUS"'3');
   
// ----------------------------------
   // Allow SEO NEWS
   // Next string should be added only
   //
   
define('news_seo_enable''rewrite');
   
// ----------------------------------
  
if (! isset ($ xoopsOption 'nocommon']) & & XOOPS_ROOT_PATH! ='') (
Requieren XOOPS_ROOT_PATH ". / Include / common.php";
)
--------------------------------------------------------------------


To activate the url rewrites you should add to
<xoops_root>/.htaccess
the following two lines (uncomment(remove sign “#”) string beginning
with “RewriteRule….” that is appropriete for your default language)


RewriteEngine On
#
# Spanish
#
# RewriteRule ^noticias.([a-z]+).([0-9.]+)/  modules/news/seo.php?seoOp=$1&seoArg=$2

#
# English
#
RewriteRule ^news.([a-z]+).([0-9.]+)/  modules/news/seo.php?seoOp=$1&seoArg=$2

==========================================

bjuti

Just can't stay away
Posted on: 2010/3/1 1:30
bjuti
bjuti (Show more)
Just can't stay away
Posts: 871
Since: 2009/1/7 2
#10

Re: url rewrite

Is there any support for SEF for News 1.66? Is there any tutorial what files to change/edit?

Tnx