Fork me on GitHub
Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

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

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 3.0 4 6 2013 Abuse Android AntiHarvesting AntiMalUser AntiSpam API Apple Battlefield Blocks Bootstrap Captcha cell cent chronolabs CHUNG content CĂN demo docek download Dresses evden eve facebook Fat floor Food for free Gateway Google Guide herre Home Honeypot HP html5 Human HỘ IP iPhone jQuery List Loss mobile module modules Monster new newbb news NHÀ PARK phone PHP Prevention profile project Protector publisher Rapid RESIDENCE responsive review Rights rmcommon Room security Sentry site Smartphone Smarty Spam stem Studio support tag tags tdmcreate The Theme themes User userlog web weight xoops Xortify XPayment ZendFramework

New Users

Registering user

# 137305

bobop

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post

« 1 (2) 3 4 5 »


#11 Posted on: 2009/6/17 11:07 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
thx! good to know. In the meantime I simply renamed sitemap.xml. Surprisingly the old BSD-server we had, had no problems with the rewrite.

Top

frankblack
Just can't stay away
Just can't stay away
Joined:
2005/6/13 3:03
From D-Schiefbahn
Group:
Registered Users
Posts: 785
(Show More) (Show Less)


#12 Posted on: 2009/6/24 1:43 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
xoRewriteModule works good so far, but now I have the problem that only ONE file has to be excluded from being re-written. I searched a bit, but did not find a proper solution.

Anyone?

Top

frankblack
Just can't stay away
Just can't stay away
Joined:
2005/6/13 3:03
From D-Schiefbahn
Group:
Registered Users
Posts: 785
(Show More) (Show Less)


#13 Posted on: 2009/9/20 6:49 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
Hello,
I did everything as per said by Mark but i am getting the error given below:

"Error: Smarty error: [plugin] could not load plugin file 'outputfilter.xoRewriteModule.php' (core.load_plugins.php, line 118)
This page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Smarty error: [plugin] could not load plugin file 'outputfilter.xoRewriteModule.php' (core.load_plugins.php, line 118)
Backtrace:
/class/smarty/Smarty.class.php (1092)
/class/smarty/Smarty.class.php (1816)
/class/smarty/internals/core.load_plugins.php (118)
/class/smarty/Smarty.class.php (915)
/header.php (69)
/index.php (77)"


and not able to open any page of website for every page it shows above error.
I have XOOPS 2.3.1

Please suggest the solution..

Top

ajay
Just popping in
Just popping in
Joined:
2009/9/14 6:58
Group:
Registered Users
Posts: 11
(Show More) (Show Less)


#14 Posted on: 2009/9/20 8:10 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
You need to have these files in your XOOPS root:
/.htaccess
/class/smarty/xoops_plugins/outputfilter.xoRewriteModule.php
/configs/xoRewriteHtaccess.ini.php
/configs/xoRewriteModule.ini.php
/Frameworks/smarty/xoSmartyFunctions.php
Sometimes it helps to have a copy of outputfilter.xoRewriteModule.php in /class/smarty/plugins/
The two ini files and .htaccess have to be adapted to your site and modules in use.

There may no other system in use for URL rewriting!


Top

ghia
Community Support Member
Community Support Member
Joined:
2008/7/3 14:19
From Belgium
Group:
Registered Users
Posts: 4946
(Show More) (Show Less)


#15 Posted on: 2009/9/20 8:54 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
Maybe check the permissions (and ownership) of the files. Are you on Windows or on 'nix? Did you setup your .htaccess files and make sure that part works first? There are two parts, the delivery part (the .htaccess part) and the rewriting part (all the other files and junk). If you null out all the configurations (When I first set it up, I turned off all modules to make sure it would work without rewriting any modules) and then I turned on modules one by one in each of the configuration files.

However, your messages is about loading the filter itself, so that makes me think file permissions or they were loaded in the wrong place, or something like that. Ghia gave you a listing of all the files and where they should be from XOOPS ROOT.

And there was that one error in the code that needed to be fixed for some installations (gets rid of the double slash in the URL).

Top

mboyden
Moderator
Moderator
Joined:
2005/3/9 12:07
From Austin, TX (USA)
Group:
Registered Users
Posts: 475
(Show More) (Show Less)


#16 Posted on: 2009/9/20 14:26 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
Hi Ghia & Mark, thanks for the reply. Ghia i did everything as you said. I had misplaced the files and now as per your suggestion placed those files to respected directories. Now site is working as before but there is no change in url. If i am trying to open my site by domain.com/forum it shows 404 error(/forum was not found on this server)
but domain.com/modules/newbb is working fine

my HTACCESS file is as below

Options +FollowSymlinks
RewriteEngine On
RewriteRule ^snprofile/(.*)$ /modules/yogurt/$1 [QSA,L]
RewriteRule ^forum/(.*)$ /modules/newbb/$1 [QSA,L]
RewriteRule ^blogs/(.*)$ /modules/wordpress/$1 [QSA,L]
RewriteRule ^chat/(.*)$ /modules/x7chat/$1 [QSA,L]

and remaining everything is done as mark said.
I saw many comments that Marks's hack worked for them but why is it not working for me i am unable to find it.. Please help..

Top

ajay
Just popping in
Just popping in
Joined:
2009/9/14 6:58
Group:
Registered Users
Posts: 11
(Show More) (Show Less)


#17 Posted on: 2009/9/20 14:37 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
Hey Mark, i tried to see files permission but everything is fine over there because after placing xoRewriteModule files to respected directories site is working fine. But domain.com/folder neither working nor get directed to any page it simply says /forum not found. As i have given HTaccess file above i don't think so there is any problem in htaccess file.

Top

ajay
Just popping in
Just popping in
Joined:
2009/9/14 6:58
Group:
Registered Users
Posts: 11
(Show More) (Show Less)


#18 Posted on: 2009/9/20 15:28 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
I have the same problem. I hacked xoRewrite with the solution from forum, but problem is stil there.



Top

bjuti
Just can't stay away
Just can't stay away
Joined:
2009/1/7 17:55
From Belgrade, Serbia
Group:
Registered Users
Posts: 859
(Show More) (Show Less)


#19 Posted on: 2009/9/20 15:53 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
you might try: domain.com/forum/ which for the rule as written isn't the same as domain.com/forum. See if that works (you can also try the actual index page of domain.com/forum/index.php.

If that works, then you've confirmed that the delivery aspects operates. That's good. Then you can work on the rewrite aspects of the solution.

There is a configuration file that you have to edit and make the same "translations" (but sort of reversed) as you just specified in your .htaccess file. That is what will change the URLs in the code (through Smarty).

The links hack is a separate issue that just results in duplicate //'s before the directory path in the URL (and is usually harmless).

Top

mboyden
Moderator
Moderator
Joined:
2005/3/9 12:07
From Austin, TX (USA)
Group:
Registered Users
Posts: 475
(Show More) (Show Less)


#20 Posted on: 2009/9/20 16:22 Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
Hm.. /forum doesn't work, /forum/ work. Bah..

Top

bjuti
Just can't stay away
Just can't stay away
Joined:
2009/1/7 17:55
From Belgrade, Serbia
Group:
Registered Users
Posts: 859
(Show More) (Show Less)




« 1 (2) 3 4 5 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]