21
disky
Re: Rewriting module URLs
  • 2006/1/14 12:25

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Glad to hear that at least works :)

try with this:

RewriteEngine On
RewriteBase /
RewriteRule ^forum/([0-9]+)$ /modules/newbb/viewforum.php?forum=$1 [L]

And try 'www.mydomain.com/forum/1' or what the forum number might be.

Did you remember this part:

I also had to change 1 line in includes/common.php
from:
$xoopsRequestUri = $_SERVER[ 'REQUEST_URI' ]; // Deprecated (use the corrected $_SERVER variable now)
to:
$xoopsRequestUri = $_SERVER[ 'SCRIPT_NAME' ];

If i remember correctly you will actually get blank screen if you forgot it.

I have no clue why it is not done in the core system allready, they even themself write it is 'deprecated'.



22
disky
Re: Rewriting module URLs
  • 2006/1/13 18:18

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Try with this rule:

RewriteRule ^justATest/$ /index.php [L]

And type:

http://www.YourDomain.com/justATest/

In the browser, if it shows the frontpage mod_rewrite works.



23
disky
Re: Rewriting module URLs
  • 2006/1/12 8:14

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hi Mikeytheman

Do you get any info if you enable php debug in admin/preference ?



24
disky
Re: The xoops_session table
  • 2005/12/26 21:07

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Thanks for the clarification.

How come XOOPS does not clean up in these tables on its own ?

On another site www.xray-mag.com the timeout is 1 day, but there was session records from 2004 in the table.



25
disky
Re: The xoops_session table
  • 2005/12/23 12:35

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Is there nobody here who know what this table is doing ?



26
disky
The xoops_session table
  • 2005/12/21 12:02

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


What is the purpose of the xoops_session table in the database ?

On one of the sites i host: www.debian-news.net in the database the xoops_session table contains a stagering 139241 records !!!

So i have a few questions about this table.

What is the purpose of this table ?

Why does it keep growing ? Even if i disable 'Use custom session' in preferences !!

Can i just truncate the table without any ill effects, like once a week ?
Or maybe run a script that takes the 'Session expiration' and removes records that are to old ?

I am running on XOOPS 2.0.13.2

Best Regards
Søren Reinke



27
disky
Re: Rewriting module URLs
  • 2005/12/11 9:31

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hi Dougfc5

'Then each time when I go to mysite.com/contact, it can redirectly to mysite.com/modules/contact .'

So when you go to 'mysite.com/contact' you see that site, and the url is still 'mysite.com/contact' ?

'When I tick the 'contact' on the 'main menu', I still seehttp://mysite.com/modules/contact on url .'

You have to change the template for that module that outputs that link. Maybe it is just in your theme.html file for the selected theme.



28
disky
Re: Rewriting module URLs
  • 2005/12/9 8:59

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


I just found out that if i added a / after the last number in the mylink url it failed, so i added this line to .htaccess as well:
RewriteRule ^link/([0-9]+)/([0-9]+)/.*$ /modules/mylinks/visit.php?cid=$1&lid=$2 [L]

Now it works,

You can write:

http://www.mydomain.com/link/10/18/I_think_this_is_a_very_cool_link



29
disky
Re: Rewriting module URLs
  • 2005/12/8 13:16

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Hi Doug

It looks okay to me :)

I use it on my server, and there it works :)

/Søren



30
disky
Re: Rewriting module URLs
  • 2005/12/8 10:20

  • disky

  • Just popping in

  • Posts: 90

  • Since: 2003/10/31


Quote:

dougfc5 wrote:
If "mylink" module has hundreds and even thousands of links, do I need to rewrite for each link? Then I will rewrite for hundred times. It may be a problem for me.

Is there any fast way to do it?
doug


If you use mod_rewrite you make 1 rewrite and it handles them all :) If they have the same schema :)




TopTop
« 1 2 (3) 4 5 6 ... 9 »



Login

Who's Online

253 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 253


more...

Donat-O-Meter

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

Latest GitHub Commits