Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4319
  • *Latest: thygrim

  • *Total Posts: 15775
  • *Total Topics: 2381
  • *Online Today: 4
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 2
  • *Total: 2

Author Topic: SEF Question  (Read 1857 times)

0 Members and 0 Guests are viewing this topic.

Offline Lineman

  • Charter Member
  • *
  • Posts: 24
  • Gender: Male
    • God's Chat Room
SEF Question
« on: 03.05.12, 06:18:25 »
Hello,

I implemented the PoratMx SEF option by checking the box to enable and did not change anything else in the SEF manager.  I have the following .htaccess file:

Code: [Select]
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

ErrorDocument 404 /errormessages/404.shtml
ErrorDocument 403 /errormessages/403.shtml
Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName xxxxxxxx.com

All the regular users are logged out automatically every time they switch pages on the site.  Meaning going to the blogs or community and between board topics, etc...

when I turn off the SEF engine in the SEF manager section the problem stops.

Any suggestions?

Thank you  :)
What lies behind us, and what lies before us are tiny matters compared to what lies within us.
~Ralph Waldo Emerson

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5584
  • Gender: Female
Re: SEF Question
« Reply #1 on: 04.05.12, 02:23:29 »
Try this .htaccess

# sample .htaccess for PortaMxSEF
# if you have problem, try to uncomment RewriteBase
# and replace /forumpath/ with the path to your forum
RewriteEngine On
# RewriteBase /forumpath/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Many are stubborn in relation to the path, a few in relation to the target.

Offline Lineman

  • Charter Member
  • *
  • Posts: 24
  • Gender: Male
    • God's Chat Room
Re: SEF Question
« Reply #2 on: 04.05.12, 02:56:25 »
Thank you for the quick response feline.  It's the same code except for the commented RewriteBase.  What would be the syntax if the forum is in the root directory for the RewriteBase?  Meaning, SMF is installed in public_html/

Also, I should have mentioned this before.  I get this in the error_log - PHP Notice:  Undefined index: action in /public_html/Sources/PortaMx/PortaMxSEF.php on line 981


Thank you  :)
What lies behind us, and what lies before us are tiny matters compared to what lies within us.
~Ralph Waldo Emerson

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5584
  • Gender: Female
Re: SEF Question
« Reply #3 on: 04.05.12, 12:00:21 »
What would be the syntax if the forum is in the root directory for the RewriteBase?  Meaning, SMF is installed in public_html/
in this case the rewritebase must be RewriteBase /

Quote from: Lineman
Also, I should have mentioned this before.  I get this in the error_log - PHP Notice:  Undefined index: action in /public_html/Sources/PortaMx/PortaMxSEF.php on line 981
Interesting ... there is no index action on this line ...  ???

Best way ... copy all files from a fresh PortaMx 1.45 archive with ftp to you server (use binary transfer)
Also you have to check which Apache version you use ...
Many are stubborn in relation to the path, a few in relation to the target.

Offline Lineman

  • Charter Member
  • *
  • Posts: 24
  • Gender: Male
    • God's Chat Room
Re: SEF Question
« Reply #4 on: 13.05.12, 22:06:24 »
I did everything that was listed.  But, no dice...  The same thing still happens.

The Apache version is 2.22.2

There isn't any problems when the 'stock' SEF option is enabled in SMF.
What lies behind us, and what lies before us are tiny matters compared to what lies within us.
~Ralph Waldo Emerson

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5584
  • Gender: Female
Re: SEF Question
« Reply #5 on: 14.05.12, 18:33:20 »
is the mod-rewrite opt installed on apache?
php version you use ?
Many are stubborn in relation to the path, a few in relation to the target.

Offline Lineman

  • Charter Member
  • *
  • Posts: 24
  • Gender: Male
    • God's Chat Room
Re: SEF Question
« Reply #6 on: 15.05.12, 05:09:21 »
Thank you Feline for taking time for this issue.

The mod_rewrite is enabled in Apache 2.22.2
PHP version is 5.3.10
I do have WHM/root access - it is a VPS.

The SEF option in SMF works fine, but your SEF engine is superior and I would like to use it.

Thank you
What lies behind us, and what lies before us are tiny matters compared to what lies within us.
~Ralph Waldo Emerson

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5584
  • Gender: Female
Re: SEF Question
« Reply #7 on: 15.05.12, 16:38:03 »
I can't say what's wrong, I never have seen a error like this.
You are sure that the file is correct copied and not defect? As I say above .. on the line you post is nothing what can do this error.
You have modify the SEF settings?
Have you other mods installed they can give a problem with the SEF engine?
That is the code around the error line:
Code: [Select]
function getSingleKeyParams(&$url, &$result)
{
global $PortaMxSEF;

if(!empty($url))
{
foreach($PortaMxSEF['singletoken'] as $key)
{
$pos = array_search($key, $url);
if($pos !== false && (array_key_exists($key, $PortaMxSEF['pmxextra']) && count(array_intersect($PortaMxSEF['pmxextra'][$key], $url)) > 0) === false)
{
$result[$key] = '';
array_splice($url, $pos, 1);
}
}
}
return !empty($url);
}

and Line 981 is this
Code: [Select]
if(!empty($url))
This code NEVER can give a error ...
Many are stubborn in relation to the path, a few in relation to the target.