Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]

Author Topic: 'Excluding' Directory  (Read 10333 times)

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
'Excluding' Directory
« Reply #30 on: December 02, 2006, 05:33:04 pm »

Cheers, Tim... I'll just finish my glas of wine, and I'll join you for a bruskie, ok... See you at the pub ;)
Logged
"It's only dead fish that goes with the flow... "
Updated

haelen

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 62
'Excluding' Directory
« Reply #31 on: December 02, 2006, 05:44:13 pm »

Sure. What's a 'Bruskie'? I don't think we have them in England.

(Maybe PM or reply to timothyrowe at gmail dot com)  :)
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
'Excluding' Directory
« Reply #32 on: December 02, 2006, 05:56:12 pm »

Hehe, beer :)
Logged
"It's only dead fish that goes with the flow... "
Updated

haelen

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 62
'Excluding' Directory
« Reply #33 on: December 02, 2006, 06:07:17 pm »

Oh, *Brewskie* ;-)
Logged

Fred K

  • Still trying to learn stuff
  • ULTIMATE member
  • ******
  • Karma: 130
  • Posts: 2728
    • Personal
'Excluding' Directory
« Reply #34 on: December 02, 2006, 08:00:44 pm »

ah. beer... :D

meanwhile, Tim, I've just been through more or less exactly the same issue while setting up a PunBB forum in conjunction with an sNews site I'm working on. The setup is that the forum folder lives within the snews folder, so that the htaccess file can be exploited somewhat. Here's what my htaccess file looks like for that particular project (sNews 1.5 ... RC2, I think):
Quote

   php_value session.use_trans_sid 0


RewriteEngine On

RewriteBase /snews

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]

RewriteRule ^categories/$ index.php?category=categories [L,QSA]
RewriteRule ^contact/$ index.php?category=contact [L,QSA]
RewriteRule ^images/$ index.php?category=images [L,QSA]
RewriteRule ^login/$ index.php?category=login [L,QSA]
RewriteRule ^logout/$ index.php?category=logout [L,QSA]
RewriteRule ^new/$ index.php?category=new [L,QSA]
RewriteRule ^rss/$ index.php?category=rss [L,QSA]
RewriteRule ^unpublished/$ index.php?category=unpublished [L,QSA]
RewriteRule ^forum/$ forum/index.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/ index.php?category=$1&title=$2 [L]
RewriteRule ^([a-z_]+)/([^/]+)\.html$ index.php?category=$1&title=$2 [L]
RewriteRule ^([a-z_]+)/([^/]+)\.php$ index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
Note the blue line in the middle. It allows me to include a hard coded href in the function in snews, that points to the address "forum/". And it works.

Now, I obviously don't know if this would fix your problem -- I haven't used Wordpress in this context and you seem to have both Wordpress and sNews installations on the root, which makes things a bit more complicated I guess. But it should be possible to work around, imho.
Anyway, it's just a suggestion. Might give you something to mull over. ;D
Now, where did I put that beer?
Logged

haelen

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 62
'Excluding' Directory
« Reply #35 on: December 02, 2006, 08:25:21 pm »

Hi Fred,

I appreciate your input very much. However, with my level of competency, I think I'd find it difficult to figure out what to do based on the example you've given. Not your fault, by any means!

Best,
Tim
Logged

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
'Excluding' Directory
« Reply #36 on: December 02, 2006, 09:47:33 pm »

just as a side note to this...

I created a category called Forum, and created an article which included my forum, as opposed to linking to it... and it opens as expected -- fully operational.

However, with my host, the forum was set up on a sub domain, so my include statement is
[include]http://forum.fiddlenfolk.com/[/include]

Just out of interest, I tried it as per structure -- being
root (snews)
++forum (directory for punbb board)
so include became
[include]http://www.fiddlenfolk.com/forum/[/include]
and this still works as expected...

Tim, don't know if this would work for you...
Logged
Of all the things I have lost, it is my mind that I miss the most.

haelen

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 62
'Excluding' Directory
« Reply #37 on: December 03, 2006, 08:00:06 am »

G'Day Phil. I'll give it a try.
When you say that the 'article included your forum', in what sense?

Cheers,
Tim
Logged

haelen

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 62
'Excluding' Directory
« Reply #38 on: December 03, 2006, 09:33:24 am »

OK! I've found a solution:

 .htaccess (in root)

Redirect permanent /index.html http://www.timrowe.co.uk/snews/

That's it! (With the 'subtle' addition of a file named 'index.html' to 'root')  

 ;)

Best,
Tim
Logged

brauck

  • Hero Member
  • *****
  • Karma: 18
  • Posts: 556
    • http://www.hbw-webdesign.nl/
'Excluding' Directory
« Reply #39 on: December 03, 2006, 11:14:12 am »

Great you sorted it out Tim! Saves me testing time :)
Logged
Confidence is reduced complexity.
brauck.nl for free css templates
Pages: 1 2 [3]