1
disky
Re: Rewriting module URLs
  • 2006/5/15 18:47

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


patagon:

Hi there.

It sounds like the weblink module you are using, has a problem with the rewritten URL's.

Could you show me the code around the line it complains about ? maybe the whole function where the error occurs.

I can't garanti to be able to help you though, never used the weblink module.



2
disky
Re: Rewriting module URLs
  • 2006/5/15 18:42

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Cuidiu:
What you need to change in the templates i can't tell you, it depends 100% on what template you use, and how it is built.

What i changed in the article system i uses, is how links are made in the templates i use to list links.

There i took the page title and added it to the URL.

About this '_MD_SF_REQUESTEDANDANSWERED '

Try to do a search in the language folders of the module you use, it sounds like it was not translated to the language you want to use.

About hiring me, it sure depends on what you need. If you really mean it, contact me by personal message :)



3
disky
Re: Rewriting module URLs
  • 2006/5/12 23:07

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hi Stelian

I think you need something like:


WriteRule ^faqs/Mod_rewrite_faq.html$

WriteRule ^/modules/catads/computers$ /modules/catads/adslist.php?cat_id=1 [L]

WriteRule ^/modules/catads/automobiles$ /modules/catads/adslist.php?cat_id=2 [L]

Hope it works

p.s. Both of you i'll be back in 8-10 hours, i need sleep. Here in denmark it is 01:22 am i have been playing to much with my server :) See ya



4
disky
Re: Rewriting module URLs
  • 2006/5/12 23:04

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Cuidio:

You need a .htaccess line like:
RewriteRule ^article/([0-9]+)/.*$ /modules/fsArticle/index.php?articleid=$1 [L]

With this RwwriteRule, you can have URL's like:

domain.com/article/117/bla_bla_bla_bla

It simply ignores everything after /117/

p.s. You need to adjust it to the module you use.



5
disky
Re: Rewriting module URLs
  • 2006/5/12 22:23

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Quote:

Here's what's working:
directory - domain.com/faqs/
category - domain.com/faqs/category/1.html
individual faq - domain.com/faqs/1

But I would like them to be the pagename and category name.
Can someone please help? Can someone point out what I'm doing wrong?


I am not sure i understand what you want.

Do you want to be able to have a URL like:

domain.com/faqs/Mod_rewrite_faq.html

The only way i know (and i am stilla mod_rewrite newbie) would be to have a line in the .htaccess file like this:

WriteRule ^faqs/Mod_rewrite_faq.html$ /modules/smartfaq/faq.php?faqid=117 [L]

if the id for that FAQ is 117

So you have 1 WriteRule per page, but there might be a better way to do this, but i don't know for sure.
It would not wonder me if it would be possible to do it via a MySQL database or something like that, but it is pure speculation.

Hope this helps, else just ask :)



6
disky
Re: Rewriting module URLs
  • 2006/5/12 22:15

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hi Stelian

I added the following lines to the .htaccess file in the root of my site:

RewriteEngine On
RewriteBase /
RewriteRule ^article/([0-9]+)$ /modules/fsArticle/index.php?articleid=$1 [L]
RewriteRule ^article/([0-9]+)/.*$ /modules/fsArticle/index.php?articleid=$1 [L]


In the definition of your virtual_host in your apache config you need to set:
AllowOverride All
also

Hope this help, if not just ask :)

p.s. the apache error logs are a good place to look for hints.



7
disky
Re: Rewriting module URLs
  • 2006/2/16 20:07

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Sorry i have no experience with that hack you are using.

Can't help you there.

But i guess the main problem is you are trying to change the 'modules' directory name.



8
disky
Re: Rewriting module URLs
  • 2006/2/15 6:49

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


You should have something after the url, like

www.mydomain.com/buzau/anunturi/index.php

Or whatever the file in that module you are trying to reach is called.

Any luck ?



9
disky
Re: Rewriting module URLs
  • 2006/2/14 21:58

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


If newbb works or not i dont know.

But the others i think you can do like this:

RewriteRule ^modules/catads/(.*)$ /buzau/anunturi/$1 [L]

The others should be just like the above one.

At the moment i am not able to test it, but give it a go :)

If they don't work, just 'complain' i should be able to test in next weekend.



10
disky
Re: Rewriting module URLs
  • 2006/2/13 6:49

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Are you sure you gave me the correct URL's to rewrite ?

In a XOOPS system a url like 'http://www.buzaulive.ro/modules/ ' does not make much sense, you need to specify a module after it.

Or did you actually mean:
http://www.buzaulive.ro/modules/A_MODULE_NAME

Where A_MODULE_NAME means any module no matter what ?




TopTop
(1) 2 3 4 ... 9 »



Login

Who's Online

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


Members: 0


Guests: 296


more...

Donat-O-Meter

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

Latest GitHub Commits