1
ajay
Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
  • 2009/9/25 9:25

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


Actually what i want is in the main menu bar or on any link in the website someone(user) clicks, it should go to newdir path instead of olddir path. For which i am unable to find a solution. I think it will be done through hack for each module and link inside the website. Well Thanks Mark and Ghia for your great support. And yes i would like to say please include xoRewriteModule in next release of XOOPS it's really helpful and if possible then please try to find such a way by which without hack of any module we can redirect olddir links to newdir link internally too(as i am not able to do it).



2
ajay
Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
  • 2009/9/24 19:23

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


I have made changes in /configs so now both both links are working at present i mean domain.com/module/newbb and domain.com/forum/ i have made proper changes at both places in .htaccess and in /configs.
Below is the changes i have done in /configs
[xoRewriteModule]
yogurt="snprofile"
newbb="forum"
wordpress="blogs"
x7chat="chat"
*content="content"
*multimenu="multimenu"
*sitemap="sitemap"
*bithday="birthday"
*system="system"
*tplsadmin="tplsadmin"



3
ajay
Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
  • 2009/9/24 18:58

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


Hi Mark and Ghia,
Thanks for your great support. You guys are really great and helping peoples. I deleted all cache from every directory except index.html file. But problem is still there it shows same old path in the user view. As my site is on testing right now and still too many things are remaining but before that i want to solve my every doubt. I have created a demo user account by which you can login and check here is url of my link www.mynportal.co.cc login id and password is "demo". Hey Mark thanks for sharing Host provider but i am using 2kmegs.com which provides free hosting for upto 4 domains with 2gb space and 5 GB bandwidth i think it's enough for testing purpose or for a small size website :). And for paid hosting i would prefer Arvixe.com it provides great features good pricing.



4
ajay
Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
  • 2009/9/23 14:24

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


Clear means do i need to delete cache? if yes then from which directory as i can see there are 2-3 cache directories one is in XOOPS root directory another one is in xoops_data directory. In xoops_data directory there are again two different directories smarty_cache & xoops_cache. I am new for all this so need above explanation. Please help..



5
ajay
Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
  • 2009/9/21 6:40

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


i tried to make changes in Main Menu block but that way if i change the permissions of modules visibility there will no changes in Menu Bar it will show the same things.... instead of hiding module.



6
ajay
Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
  • 2009/9/21 5:44

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


yeah it's working, Thanks Mark. You are great.

This was about external links, Can't we change internal links like if a member clicks in menu bar on a specific module it shows the same olddir path in the url not the newone. If there is any way by which we can do this it will be great thing for the security purpose of the website from spammers & hackers.



7
ajay
Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
  • 2009/9/20 19:37

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


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.



8
ajay
Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
  • 2009/9/20 19:26

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


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..



9
ajay
Re: HOWTO: xoRewriteModule - Simplified, Short URLs (remove /modules)
  • 2009/9/20 11:49

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


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..



10
ajay
Re: How to remove /module/ from URL & change the module name in URL
  • 2009/9/18 8:20

  • ajay

  • Just popping in

  • Posts: 11

  • Since: 2009/9/14


Quote:

Thank you very much mate... i was looking for this only but was unable to find it...




TopTop
(1) 2 »



Login

Who's Online

239 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 239


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