1
AxelF
xoRewriteModule - Simplified, Short URLs?
  • 2020/10/28 16:25

  • AxelF

  • Theme Designer

  • Posts: 238

  • Since: 2004/7/12


Hi,

long time ago, I was active at Xoops, and now I´m back. I reaktivated an old project (https://kenner-mask.com) and need some help with Xoops 2.5.11 and SEO.

Back in the old days, there was the option to use modules and hacks to generate seo friendly URL.

Is there a way for xoops 2.5.11 to do the same?

Thanks for your time

2
heyula
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/10/29 12:17

  • heyula

  • Theme Designer

  • Posts: 542

  • Since: 2008/4/24



3
AxelF
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/10/29 20:23

  • AxelF

  • Theme Designer

  • Posts: 238

  • Since: 2004/7/12


Thanks a lot for your answer.

Does the modules is doing to change the URL as well like this?

[Default] http://xoops_site/modules/news/article.php?storyid=1
[Converted] http://xoops_site/news+article.storyid+1.htm

[Default] http://xoops_site/modules/userinfo.php?uid=1
[Converted] http://xoops_site/userinfo.uid+1.html

4
AxelF
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/11/10 15:25

  • AxelF

  • Theme Designer

  • Posts: 238

  • Since: 2004/7/12


No ideas?

5
heyula
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/11/10 17:33

  • heyula

  • Theme Designer

  • Posts: 542

  • Since: 2008/4/24


Hi;

1 - first go to the publisher's options section
Resized Image

2- make the necessary settings as in the picture
then located in the home directory
.htaccess add

RewriteEngine   On

#For Ajax Rating -
RewriteRule ^modules/publisher/index.php/([a-z]+).([0-9.]+)/include/ajax_rating.phpmodules/publisher/include/ajax_rating.php?%{QUERY_STRING}
RewriteRule ^publisher.([a-z]+).([0-9.]+)/include/ajax_rating.phpmodules/publisher/include/ajax_rating.php?%{QUERY_STRING}

#SEO .Htaccess setting
RewriteRule ^publisher.([a-z]+).([0-9.]+)/  modules/publisher/index.php?seoOp=$1&seoArg=$2

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


.htaccess code added

Resized Image


.htaccess no code added

Resized Image


I tried and works for you.

Demo:
https://demo.erenyumak.com/publisher.item.8/

6
AxelF
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/11/12 8:47

  • AxelF

  • Theme Designer

  • Posts: 238

  • Since: 2004/7/12


Good morning,

thanks, that heloed. For publisher it works fine.

For my other modules all cloned from myalbum is it weorking.

But, one problem I have with xlanguage. Have a look what it´s doing to the URL

https://kenner-mask.com/merchandise/[de]Kataloge-und-Hefte[/de][en]Catalogs-and-booklets[/en]/cat,80,0,12,0,list.html

htaccess code for myalbum (name is here merchandise)

#Merchandise
RewriteRule ^merchandise/submit.html                                                                                         modules/merchandise/submit.php  [L,NC,QSA]
RewriteRule ^merchandise/submit.php                                                                                         modules/merchandise/submit.php  [L,NC,QSA]
RewriteRule ^merchandise/ratephoto.php                                                                                         modules/merchandise/ratephoto.php  [L,NC,QSA]
RewriteRule ^merchandise/cat,([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-zA-Z0-9]+).html                                         modules/merchandise/viewcat.php?cid=$1&uid=$2&num=$3&pos=$4&view=$5  [L,NC,QSA]
RewriteRule ^merchandise/rss,([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-zA-Z0-9]+).rss                                            modules/merchandise/rss.php?cid=$1&uid=$2&num=$3&pos=$4&view=$5  [L,NC,QSA]
RewriteRule ^merchandise/index,([0-9]+),([0-9]+).html                                                                         modules/merchandise/index.php?num=$1&pos=$2  [L,NC,QSA]
RewriteRule ^merchandise/rate,([0-9]+).html                                                                                 modules/merchandise/ratephoto.php?lid=$1  [L,NC,QSA]
RewriteRule ^merchandise/top,([0-9]+),([0-9]+).html                                                                         modules/merchandise/topten.php?hit=$1&rate=$2  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/index.php                                                                                     modules/merchandise/index.php  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/comment_(.*?)                                                                                  modules/merchandise/comment_$2  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/photo.php(.*?)                                                                                  modules/merchandise/photo.php$2  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/viewcat.php(.*?)                                                                              modules/merchandise/viewcat.php$2  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/ratephoto.php(.*?)                                                                              modules/merchandise/ratephoto.php$2  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/list.tag.php(.*?)                                                                              modules/merchandise/list.tag.php$2  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/view.tag.php(.*?)                                                                              modules/merchandise/view.tag.php$2  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/submit.php(.*?)                                                                                modules/merchandise/submit.php?$2&title=$1  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/submit,([0-9]+).html                                                                            modules/merchandise/submit.php?cid=$2&title=$1  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/cat,([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-zA-Z0-9]+).html                                     modules/merchandise/viewcat.php?cid=$2&uid=$3&num=$4&pos=$5&view=$6  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/rss,([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-zA-Z0-9]+).rss                                     modules/merchandise/rss.php?cid=$2&uid=$3&num=$4&pos=$5&view=$6  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/edit,([0-9]+),([0-9]+).html                                                            modules/merchandise/editphoto.php?lid=$3&cid=$4   [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/rate,([0-9]+),([0-9]+).html                                                            modules/merchandise/ratephoto.php?lid=$3&cid=$4   [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/submit.php?cid=([0-9]+)                                                                modules/merchandise/submit.php?cid=$3&title=$1  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/comment_(.*?)                                                                          modules/merchandise/comment_$3  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/photo.php(.*?)                                                                          modules/merchandise/photo.php$3  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/viewcat.php(.*?)                                                                          modules/merchandise/viewcat.php$3  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/ratephoto.php(.*?)                                                                      modules/merchandise/ratephoto.php$3  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/list.tag.php(.*?)                                                                      modules/merchandise/list.tag.php$2  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/view.tag.php(.*?)                                                                      modules/merchandise/view.tag.php$2  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/index.php                                                                                 modules/merchandise/index.php  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)/(.*?)/([0-9]+),([0-9]+).html                                                                 modules/merchandise/photo.php?lid=$3&cid=$4  [L,NC,QSA]
RewriteRule ^merchandise/(.*?)                                                                                                 modules/merchandise/$1  [L,NC,QSA]


How can I fix this?

7
heyula
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/11/12 10:08

  • heyula

  • Theme Designer

  • Posts: 542

  • Since: 2008/4/24


After this process, links of old articles appear as follows.

If you say edit the articles from the admin panel and send them again, you will have the URL structure as below.

Resized Image


Demo:
https://demo.erenyumak.com/publisher.i ... released-for-testing.html

https://kenner-mask.com/merchandise/[de]Kataloge-und-Hefte[/de][en]Catalogs-and-booklets[/en]/cat,80,0,12,0,list.html


I will look when I am available for error in language.

8
AxelF
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/11/12 20:40

  • AxelF

  • Theme Designer

  • Posts: 238

  • Since: 2004/7/12


Quote:

heyula wrote:
After this process, links of old articles appear as follows.

If you say edit the articles from the admin panel and send them again, you will have the URL structure as below.

Resized Image


Demo:
https://demo.erenyumak.com/publisher.i ... released-for-testing.html

Thanks. Thats so cool

Quote:

heyula wrote
https://kenner-mask.com/merchandise/[de]Kataloge-und-Hefte[/de][en]Catalogs-and-booklets[/en]/cat,80,0,12,0,list.html


I will look when I am available for error in language.

That would be very nice. It's important for me
Otherwise I cant use the SEO option

9
AxelF
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/11/18 11:17

  • AxelF

  • Theme Designer

  • Posts: 238

  • Since: 2004/7/12


I'm sorry if I'm a little impatient, I really like to use the SEO hack.

Do you already have an idea how that can be solved with the xlanguage module?

10
heyula
Re: xoRewriteModule - Simplified, Short URLs?
  • 2020/11/20 18:09

  • heyula

  • Theme Designer

  • Posts: 542

  • Since: 2008/4/24


Sorry i couldn't look yet.

Spend all my time on the new theme of xoops.org

Resized Image

Login

Username:
Password:

Lost Password? Register now!

Who's Online

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


Members: 0


Guests: 57


more...

Donat-O-Meter

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

Latest GitHub Commits