Static Pages

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
finallygreen
Registered User
Posts: 19
Joined: Wed Mar 31, 2010 8:10 pm

Re: Static Pages

Post by finallygreen » Wed Mar 31, 2010 8:16 pm

I'm having a problem with the URL rewriting aspect of this mod.

The install has gone well and I'm able to create pages, but I can't seem to view the page with any sort of rewritten URL.

My forum is located at www.mysitename.com/forum, so if I'm understanding the install file correctly, I should be able to make a page called "Test Page" and be able to view it at www.mysitename.com/forum/test-page, correct?

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Static Pages

Post by Oyabun1 » Wed Mar 31, 2010 9:04 pm

Yes, that is correct, however, the URL rewrite will only occur if you did the changes to your .htaccess file stated in the DIY instructions of the install.xml file.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

finallygreen
Registered User
Posts: 19
Joined: Wed Mar 31, 2010 8:10 pm

Re: Static Pages

Post by finallygreen » Wed Mar 31, 2010 9:11 pm

Right....I've made the changes to .htaccess...several different ways in fact. First I tried it just as written in the instructions:

Code: Select all

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9\-\+]+)$ ./page.php?p=$1 [L]
That didn't work. Then I realized that since my .htaccess is in the site's root and my phpbb3 is at "/forum", I tried it like this:

Code: Select all

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9\-\+]+)$ ./forum/page.php?p=$1 [L]
That didn't work. Then I noticed the format of some of the other rewrite rules in my .htaccess (I have the SEO mod installed so there's several of these already there), and noticed that while they were similar to the lines if these instructions, they didn't tend to have the "." in the RewriteRule line, so I tried this:

Code: Select all

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9\-\+]+)$ /forum/page.php?p=$1 [L]
And once again, no dice.

So, any ideas where I've gone wrong??

User avatar
Luckyluciano
Registered User
Posts: 93
Joined: Tue Feb 05, 2008 11:09 pm
Location: Italy
Name: Luciano
Contact:

Re: Static Pages

Post by Luckyluciano » Wed Mar 31, 2010 10:58 pm

Great mod, I attach to this message Italian translation :D
Attachments

[The extension rar has been deactivated and can no longer be displayed.]

Official support Italian to Portal XL

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Static Pages

Post by Oyabun1 » Thu Apr 01, 2010 6:41 am

@finallygreen

I don't use the URL rewrite so can't really help with that. Hopefully, someone who knows more about that side of things can help.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

jsmoke222000
Registered User
Posts: 156
Joined: Tue Jun 24, 2008 2:31 pm

Re: Static Pages

Post by jsmoke222000 » Tue Apr 06, 2010 2:01 am

Is is possible to add a forum section to a static page? I want to install the top 5 or recent topic mod & have that forum section displayed on one of my static pages. Basically I'm trying to create a homepage using a static page. I'll keep my current homepage & just redirect users to the static page automatically. I am having a problem with my homepage not working correctly in some browsers & I'm doing this with the static page to resolve the issue. Any help would be greatly appreciated.

Tenjin
Registered User
Posts: 4
Joined: Tue Apr 06, 2010 3:17 am

Re: Static Pages

Post by Tenjin » Tue Apr 06, 2010 4:25 am

finallygreen wrote:That didn't work. Then I realized that since my .htaccess is in the site's root and my phpbb3 is at "/forum", I tried it like this:
Create another .htaccess in/forum and paste the necessary lines into it.

Code: Select all

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9\-\+]+)$ ./page.php?p=$1 [L]

User avatar
piv91
Registered User
Posts: 11
Joined: Wed May 20, 2009 4:06 pm
Location: Togliatti, Russia
Name: Artyom Pivovarov
Contact:

Re: Static Pages

Post by piv91 » Tue Apr 06, 2010 6:59 am

Can i offer a small updating of this mod? If someone used it MOD likely knows that the administrator of a forum becomes the author of all pages automatically. I offer the decision as it to correct. You will find a file of updating in archive
Attachments

[The extension zip has been deactivated and can no longer be displayed.]

Image
Sorry for my terrible english

mutank
Registered User
Posts: 158
Joined: Mon Jan 05, 2009 4:47 pm
Location: Toronto, ON
Name: Dominic Struczynski
Contact:

Re: Static Pages

Post by mutank » Tue Apr 06, 2010 2:37 pm

I'm trying to edit the .htaccess file for this mod to do the following:

Instead of it being www.testsite.com/forums/yourstaticpagehere I want it to be rewritten to www.testsite.com/yourstaticpagehere

Any way I can do that in the .htaccess file?

finallygreen
Registered User
Posts: 19
Joined: Wed Mar 31, 2010 8:10 pm

Re: Static Pages

Post by finallygreen » Tue Apr 06, 2010 7:14 pm

Tenjin wrote:
Create another .htaccess in/forum and paste the necessary lines into it.

Code: Select all

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9\-\+]+)$ ./page.php?p=$1 [L]
did this, and it's still not working :(

Can anyone help me troubleshoot this?

FaTaL.92
Registered User
Posts: 1
Joined: Tue Apr 06, 2010 5:02 pm

Re: Static Pages

Post by FaTaL.92 » Tue Apr 06, 2010 8:29 pm

Great mod, I attach to this message Polish translation :D
Attachments

[The extension rar has been deactivated and can no longer be displayed.]


User avatar
Hippie459MN
Registered User
Posts: 918
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: Static Pages

Post by Hippie459MN » Wed Apr 07, 2010 1:54 am

Here is what I have in my .htaccess file on the root of the forum directory and it works just perfect. Also this is right from the DIY Instructions from the install file. :D

Code: Select all

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9\-\+]+)$ ./page.php?p=$1 [L]
You have to tell it to turn the rewrite engine on otherwise it wont work. :D

finallygreen
Registered User
Posts: 19
Joined: Wed Mar 31, 2010 8:10 pm

Re: Static Pages

Post by finallygreen » Wed Apr 07, 2010 1:06 pm

I've done exactly as instructed and it simply won't work.

Could it be that this is incompatible with the Ultimate SEO mod?

asmalik12
Registered User
Posts: 91
Joined: Fri Mar 27, 2009 3:26 pm
Location: Lahore, Pakistan
Contact:

Re: Static Pages

Post by asmalik12 » Wed Apr 07, 2010 6:00 pm

kindly guide me installing process, its not appearing in .MODS Tab.
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam

Image

User avatar
Hippie459MN
Registered User
Posts: 918
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: Static Pages

Post by Hippie459MN » Wed Apr 07, 2010 10:11 pm

finallygreen wrote:I've done exactly as instructed and it simply won't work.

Could it be that this is incompatible with the Ultimate SEO mod?
Could be. Try disableing it and see what happens. I myself don't like SEO mods but that's just me.

Locked

Return to “[3.0.x] MOD Database Releases”