1
XStrafer
different location for a module
  • 2003/7/10 21:26

  • XStrafer

  • Just popping in

  • Posts: 2

  • Since: 2003/6/13


Is there a universal way to change location of a module within XOOPS?

if module lives in rootweb/modules/pbboard/ but i REALLY need it to be located in /rootweb/forum (pbboard and forum are different folder names!)

how to do that?

2
mvandam
Re: different location for a module
  • 2003/7/10 22:40

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Nope. Why do you need the module moved... just the sake of a nicer URL?

If yes, and if you are using the apache webserver you can use the "mod_rewrite" feature which will convert the incoming URL request /rootweb/forum into /rootweb/modules/pbboard to access those files. i.e. gives you a nice URL without moving files.

3
ackbarr
Re: different location for a module

mvandam - great advice. I am toying with the idea of creating pretty urls for all the modules I use in my website for more search engine friendly links. For those unfamiliar with mod_rewrite and its usage, I would highly recommend checking out the article available on A List Apart:

http://www.alistapart.com/stories/urls/index.html

4
XStrafer
Re: different location for a module
  • 2003/7/11 6:19

  • XStrafer

  • Just popping in

  • Posts: 2

  • Since: 2003/6/13


Quote:
Why do you need the module moved... just the sake of a nicer URL?


no. I have subdomains created to point to a folder within the root folder (e.x. http://forum.nflame.net points to http://www.nflame.net/forum) those folder to make subdomains to pnint to could be created only in root folder anâ named like the subdomain name... (cpanel)

Quote:
If yes, and if you are using the apache webserver you can use the "mod_rewrite"

my hoster doesn't alllow me to edit the httpd.conf

still any other ideas??

5
mvandam
Re: different location for a module
  • 2003/7/11 7:15

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Quote:

my hoster doesn't alllow me to edit the httpd.conf

still any other ideas??


You might be able to put rewrite rules in .htaccess files in appropriate directories. I don't have experience with this though, but if you search on google there are plenty of examples. It depends on the permissions set by your hoster.

If that doesn't work, I'm not sure what else to suggest. It is pretty ingrained into XOOPS that modules must reside in xoops_dir/modules/module_name...

6
Compactman
Re: different location for a module
  • 2003/7/11 7:18

  • Compactman

  • Just popping in

  • Posts: 7

  • Since: 2003/1/20


sounds like another hostdome user..

7
sunsnapper
Re: different location for a module

This url has been updated:
http://www.alistapart.com/articles/urls/

This article about handling URLs with PHP might also be of interest:
http://www.alistapart.com/articles/succeed/

8
ajaxbr
Re: different location for a module
  • 2003/11/5 4:11

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Create an index.php file in /rootweb/forum containing the following
PHP
header
('HTTP/1.0 301 Redirect permanent');
header('location: rootweb/modules/pbboard/');
?>

9
onokazu
Re: different location for a module
  • 2003/11/5 9:46

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


You can also create a symlink between directories, if the ISP doesn't allow you to define mod_rewrite rules. You may need to tell them to create one anyway, though.

Login

Who's Online

227 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 227


more...

Donat-O-Meter

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

Latest GitHub Commits