July 31, 2010, 23:43:26 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Add your links to our directory. Click here to add your links.
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Add your links to our directory. Click here to add your links.
Pages: [1] 2
  Print  
Author Topic:

Unwanted redirects : urgent

 (Read 4503 times)
0 Members and 1 Guest are viewing this topic.
LinuxGuy
Sr. Member
****

Points: 0
Offline Offline

Posts: 265


WWW
« on: January 21, 2007, 17:13:55 »

Hi.
After installing newer version, I noticed that I can't access my log directory. Its under domain.com/somelogs/
which is password protected, when giving password it leads to forum index.

I also noticed taht if I enter some wrong foldoer name ie.
domain.com/somethingnonexisting
then also it leads to forum index

can you suggeset how I can make it so that I can acces my logs, I am unable to analyse my stats.
Logged



Sindorf
Jr. Member
**

Points: 0
Offline Offline

Posts: 64


« Reply #1 on: January 21, 2007, 17:30:47 »

Well, I am not really sure about it but in my opinion, your password-protected directory is using .htaccess (as usual) and when you over-write your old .htaccess, the parameters that you can access to your pass-protected directory is deleted.

In that case, you shouldn't overwrite your .htaccess file but you should append the new data to your existing .htaccess file.
Logged
LinuxGuy
Sr. Member
****

Points: 0
Offline Offline

Posts: 265


WWW
« Reply #2 on: January 21, 2007, 17:57:14 »

The problem is not of authetication as it having seperate .htaccess for it and that is residing at different place, authetication is working  fine.
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #3 on: January 22, 2007, 02:00:51 »

Please post here your .htaccess ... probably is from there !

Regards
Logged

LinuxGuy
Sr. Member
****

Points: 0
Offline Offline

Posts: 265


WWW
« Reply #4 on: January 23, 2007, 14:07:38 »

Its just provided by u..
Code:
<IfModule mod_security.c>
# Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

RewriteEngine on

#Some apache servers need Rewritebase.
#delete # from start of Rewrite base to enable it.
#If your forum is something like http://www.forum-example.com/forum then modify your
#RewriteBase in this way: RewriteBase /forum

RewriteBase /



RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{QUERY_STRING} ^action=(.*)$
RewriteRule  ^(.*)$ seo4smf-redirect.php?a=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^topic=([0-9]*)$
RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^topic=([0-9]*).([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^board=([0-9]*).([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?b=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*);(.*)$
RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1;param=%2 [R=301,L]

RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1 [R=301,L]

#Tiny Portal Old Url's
RewriteCond %{QUERY_STRING} ^page=([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?p=%1 [R=301,L]

#Rewrite Old urls
RewriteRule  ^index.php/board,(.*).html seo4smf-redirect.php?b=$1 [R=301,L]
RewriteRule  ^index.php/board,(.*).html;(.*) seo4smf-redirect.php?b=$1&o=$2 [R=301,L]

RewriteRule  ^index.php/topic,(.*).html seo4smf-redirect.php?t=$1 [R=301,L]
RewriteRule  ^index.php/topic,(.*).html;(.*) seo4smf-redirect.php?t=$1&o=$2 [R=301,L]

#Bad Url's
RewriteRule  ^(.*)/-t(.*).html seo4smf-redirect.php?t=$2 [R=301,L]
RewriteRule  ^-b(.*)/$ seo4smf-redirect.php?b=$1 [R=301,L]
RewriteRule  ^-b(.*)/(.*)$ seo4smf-redirect.php?b=$1 [R=301,L]
RewriteRule  ^(.*)/-b(.*)/$ seo4smf-redirect.php?b=$2 [R=301,L]

#New board URL's
RewriteRule ^(.*)-b([0-9]*).([0-9]*)/;(.*) index.php?dummy=1&board=$2.$3&$4 [L]
RewriteRule ^(.*)-b([0-9]*).([0-9]*)/ index.php?dummy=1&board=$2.$3 [L]
RewriteRule ^(.*)-b([0-9]*).([0-9]) index.php?dummy=1&board=$2.$3 [L]

#New topic URL's
RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;((\?:from|msg|new)[0-9]*);(.*)$ index.php?dummy=1&topic=$2.$4&$6 [L]
RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;((\?:from|msg|new)[0-9]*) index.php?dummy=1&topic=$2.$4 [L]
RewriteRule ^(.*)-t([0-9]*).([0-9]*).html;(.*)$ index.php?dummy=1&topic=$2.$3&$4 [L]
RewriteRule ^(.*)-t([0-9]*).([0-9]*).html$ index.php?dummy=1&topic=$2.$3 [L]

#New profiles URL's
RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*);delete,([0-9]*);sesc,([a-z0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4;delete=$5;sesc=$6 [L]
RewriteRule ^(.*)-u([0-9]*).html;sa,(.*);start,([0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4 [L]
RewriteRule ^(.*)-u([0-9]*).html;sa,(.*)$ index.php?dummy=1&action=profile;u=$2;sa=$3 [L]
RewriteRule ^(.*)-u([0-9]*).html index.php?dummy=1&action=profile;u=$2 [L]

#New Tinyportal Articles URL's
RewriteRule ^(.*)-p([0-9]*).html index.php?dummy=1&page=$2 [L]

#Archive/Sitemaps
RewriteRule ^sitemaps-([a-zA-Z0-9-]*).html index.php?action=seo4smfsitemaps&sa=$1 [L]

#New action Url's
RewriteRule ^(.*).html;(.*)$ index.php?dummy=1;action=$1;$2 [L]
RewriteRule ^(.*).html$ index.php?dummy=1;action=$1 [L]

#Sitemaps
RewriteRule sitemap.xml sitemaps.php [L]
RewriteRule urllist.txt urllist.php [L]

RewriteRule indian-forums index.php?action=forum [L]
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #5 on: January 24, 2007, 01:57:22 »

PM me your forum and tell me what seo4smf version do you have (htaccess seems to be old )?

Regards
Logged

LinuxGuy
Sr. Member
****

Points: 0
Offline Offline

Posts: 265


WWW
« Reply #6 on: January 24, 2007, 04:31:50 »

SEO4SMF I am running is 0.2.3, actually for time being I am avoiding update as it has few tests failed when tried to update :
ie. subs.php and querystring.php, will do to latest soon.
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #7 on: January 24, 2007, 07:06:42 »

Just replace your htaccess ( after you do a backup ) with the htaccess from 0.2.5 ... and tell me if is ok ...


Regards
Logged

LinuxGuy
Sr. Member
****

Points: 0
Offline Offline

Posts: 265


WWW
« Reply #8 on: January 24, 2007, 13:00:39 »

I have replaced and nothing, atually I did manual update to 0.2.5.

Wht it is doing that if I enter any wrong URL for my website ie. domain.com/someghingwrong ..
then it take to forum index ! means, if its not able to find something  then it redirects to forum index.

I checked custom redirects in hosting cp and there everything is fine ie. no redirection being set.
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #9 on: January 24, 2007, 14:48:05 »

hmmm ... very strange because in my forum it doesn't do that ... I will look forward to see what problem it is !

Please give me more details about apache/php versions !

Regards
Logged

LinuxGuy
Sr. Member
****

Points: 0
Offline Offline

Posts: 265


WWW
« Reply #10 on: January 25, 2007, 11:34:06 »

I think its something .. may not be related to SEO4SMF but it was not there when I had installed version 0.2.4 !

Later on it appeared.

its php 4.4.2 and Apache 1.3 ,
May be you can suggest any other possible reason ?
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #11 on: January 25, 2007, 12:41:49 »

you said you have 2 htaccess files ... what other software do you use ?

Regards
Logged

LinuxGuy
Sr. Member
****

Points: 0
Offline Offline

Posts: 265


WWW
« Reply #12 on: January 26, 2007, 15:34:12 »

Its a DirectAdmin Cp & the stats folder was protected by DA itself..
The .htaccess file that folder is having is.
Code:
Options +ExecCGI
AddHandler cgi-script pl
DirectoryIndex awstats.pl

AuthUserFile /path/to/the/.htpass/file/.htpasswd
AuthType Basic
AuthName "AwStats Protection"

<LIMIT GET POST>
require valid-user
</LIMIT>
Logged

LinuxGuy
Sr. Member
****

Points: 0
Offline Offline

Posts: 265


WWW
« Reply #13 on: January 26, 2007, 16:12:38 »

FYI : I just upated to 0.2.6.1
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #14 on: January 27, 2007, 01:40:29 »

Do you have another SEF components installed ... do you redirect 404 ? I don't know what to say ... I need some access there to se what problem is !


Regards
Logged

Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
Valid XHTML 1.0! Valid CSS!