1
T00N2009
Professionalising the URL addresses
  • 2009/8/7 13:35

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Hello Everybody
Since last week I have been busy with changing the URL adrdesses of different modules in my website.
for example replacing the following url address

www.forexample.com/modules/smartsection/

with the fowllowing

www.forexample.com/articles/

I have been using the method which can be found here. I have done exactly what has been written in this article but without nay mentionable results.

Mark Boyden

I was wondering if there are people out there who knows more about this procedure and could help me complete this task. As it is the last step of putting my website online.

I will be looking forward to ur replies.



2
ghia
Re: Professionalising the URL addresses
  • 2009/8/7 14:54

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


T00N2009, Welcome on the XOOPS forum!

Is Apache rewriting enabled? What are the results?

3
T00N2009
Re: Professionalising the URL addresses
  • 2009/8/7 18:00

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Hello Ghia

Yes Apache rewriting is enabled. the result sis teh following message in a blanco page.


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)


I have searched in in google but could not find specific info about it with.


4
webmystar
Re: Professionalising the URL addresses
  • 2009/8/7 19:33

  • webmystar

  • Friend of XOOPS

  • Posts: 415

  • Since: 2008/6/23


look in this thread
https://xoops.org/modules/newbb/viewtopic.php?post_id=312032#forumpost312032

5
T00N2009
Re: Professionalising the URL addresses
  • 2009/8/7 19:40

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Hello Webmystar

I have done exactly the same. In my first post I have mentioned the link to instructions of Mark Boyden. But still i keep this error.

6
geopro
Re: Professionalising the URL addresses
  • 2009/8/7 19:56

  • geopro

  • Just popping in

  • Posts: 17

  • Since: 2007/10/20


I've the same problem.

7
mboyden
Re: Professionalising the URL addresses
  • 2009/8/7 20:34

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Hmmmm. Let's see if I can help. I just did this on another site using 2.3.3. Let's see if we can narrow down the problem location. Personally, I haven't seen this error, so not sure what the issue is yet.

The error seems to be in loading the Smarty filter, so did you upload all the xoRewrite files (there is one in the class tree and another in the Frameworks tree as well as the new configs directory)? Are they the same file permissions and ownership of the other files in those directories? Make sure they exist and have proper configs.

Next, if you follow the steps in my article (an overview of others' work also posted here on this site as linked by webmystar in this thread), you should be able to test each part of it as you go along.

We'll assume you did the test of the mod_rewrite module and it works.

First modify the .htaccess file, then test to see if the new URLs work. Assuming they do, then you can move onto the next part -- rewriting.

Initially turn off all of the rewrites in the actual config file and make sure XOOPS will work without any modules being rewritten. Of course, you'll have to make the hack in the header.php file. Assuming XOOPS works without any modules rewritten, then turn on individual modules one-by-one for rewriting.

And then don't forget to clear the cache files.

Confirm all this and maybe give us more info about the configs, a link to the site, etc. Have you turned on debugging?
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

8
T00N2009
Re: Professionalising the URL addresses
  • 2009/8/7 22:21

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Hello mboyden

For the past couple of hours me and a friend had been busy with ur instructions and it worked. There were some unnecessary mistakes.

1: Instead of uploading the class, Frameworks and smarty folder into the rootfolder I had uploaded the whole hackfolder xoRewriteModule.

2: The .htaccess file was something like this:
RewriteEngine On
RewriteRule ^newmoddir1/(.*)$ /modules/oldmoddir1/$1 [QSA,L]
RewriteEngine On
RewriteRule ^newmoddir2/(.*)$ /modules/oldmoddir2/$1 [QSA,L]

it should be like

RewriteEngine On
RewriteRule ^newmoddir1/(.*)$ /modules/oldmoddir1/$1 [QSA,L]
RewriteRule ^newmoddir2/(.*)$ /modules/oldmoddir2/$1 [QSA,L]

( I n your instructions it says "create similar lines for other modules." this was wrongly interpretated.

at last the .htaccess files was not in teh right place. I had ulpoaded it to the folder of the website( i have two domain names one is .com another one is .org. one of them is meant as backup for the main website that is the reason for different folders. websites within the same hosting account). This hsould have been uploaded to the headdirectory folder. For the moment it works.

But there is small trouble. I have tried to change the url adress of the main website it gives me error that the urls cannot be found on this server. Does it has something to do with the .htaccess file which is placed in the headdirectory?? It would be something tha both of the website use the same .htaccess file! How could I get rid of this problem?


9
T00N2009
Re: Professionalising the URL addresses
  • 2009/8/7 22:23

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


Geopro i think u make the same mistake as i have made. read what i have done and u will get through with it.

10
T00N2009
Re: Professionalising the URL addresses
  • 2009/8/7 22:25

  • T00N2009

  • Just popping in

  • Posts: 37

  • Since: 2009/5/12


here is link for cheking de mod_rewrite option

checking the mod_rewrite option

Login

Who's Online

241 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 241


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