March 11, 2010, 19:18:48 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Please support SEO4smf further development donating here or use paypal button from left menu.
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Please support SEO4smf further development donating here or use paypal button from left menu.
IT Resources
Pages: 1 [2] 3
  Print  
Author Topic:

Seo4SMF Introduction and bla bla

 (Read 15684 times)
0 Members and 1 Guest are viewing this topic.
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #15 on: December 05, 2006, 14:11:47 »

Because I don't use any database(sql xml etc) backend for my script I need to preserve the id in the name.

Think what is happen if you have 200 links on a single page and you do for each link a sql query Smiley for 1 user. Probably that can be optimised but not to much.

Regards
Logged



kazey
Jr. Member
**

Points: 0
Offline Offline

Posts: 8


« Reply #16 on: December 05, 2006, 18:47:42 »

i have a problem. After posting a new topic, I get this error.

The requested URL /home/think/public_html/seo4smf-redirect.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


http://www.mysite.com/home/think/public_html/seo4smf-redirect.php?b=2.0

Any ideas how i can fix it?
Logged
solidghost
Hero Member
*****

Points: 3
Offline Offline

Posts: 550



« Reply #17 on: December 05, 2006, 19:59:21 »

Do the basewrite thingy in your .htaccess
Logged

TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #18 on: December 06, 2006, 00:50:40 »

Solidghost you have right. Just add Rewritebase in your .htaccess.


Regards
Logged

kazey
Jr. Member
**

Points: 0
Offline Offline

Posts: 8


« Reply #19 on: December 06, 2006, 04:43:28 »

I enabled it, still the same error. This is my .htaccess content.

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 %{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 [R=301,L]


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]



#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&$5 [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,(.*)$ 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]

RewriteRule sitemap.xml sitemaps.php [L]
RewriteRule urllist.txt urllist.php [L]
Logged
kazey
Jr. Member
**

Points: 0
Offline Offline

Posts: 8


« Reply #20 on: December 06, 2006, 04:50:21 »

works now. thanks
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #21 on: December 06, 2006, 07:17:23 »

I'm glad you figure out Smiley

Regards
Logged

klaus2
Jr. Member
**

Points: 0
Offline Offline

Posts: 19


« Reply #22 on: December 06, 2006, 13:00:17 »

Hello. There seems to be a problem with SMF 1.1 final. It didn't install correctly. Enabling or disabling it does not work and I can't see your signature on the footer, so...

Also, had to take drastic action and rename htacess because every second page of posts or other pages from user profile were not showing. It was getting to the first page everytime.

I used SMF 1.1 final, Seo4SMF 0.2 RC5 and TP 0.96. All from zero.
Logged
klaus2
Jr. Member
**

Points: 0
Offline Offline

Posts: 19


« Reply #23 on: December 06, 2006, 13:10:46 »

Check it out by clicking on "Pages: 1 [2]" <-
Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #24 on: December 06, 2006, 17:36:43 »

Today I made first test with TP0.96 and Seo4SMf and was working ok. Just tell me more details about your site and about your versions of apache and php.

Regards
Logged

kazey
Jr. Member
**

Points: 0
Offline Offline

Posts: 8


« Reply #25 on: December 06, 2006, 20:39:36 »

I need a little help. My forum is about sports in general and i would like to have all the rewritten links to contain /sports/then whatever format/ , How do I add the /sports/ into the re-written url format considering that the forum is not installed in the /sports/ directory?

And one more thing, I get this error when i try to call sitemaps.php

Table 'cpanelusername_databaseusername.smf_tp_articles' doesn't exist
File: /home/think/public_html/sitemaps.php
Line: 63
« Last Edit: December 06, 2006, 20:47:36 by kazey » Logged
TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2571



WWW
« Reply #26 on: December 07, 2006, 01:42:47 »

After adding htacceess.txt to your .htaccess file the try to uncomment Rewritebase /forum and chanhe /forum with /sport/

Do you have TP installed ?

Regards
Logged

kazey
Jr. Member
**

Points: 0
Offline Offline

Posts: 8


« Reply #27 on: December 08, 2006, 07:04:02 »

What is TP? I tried your suggestion didn't work.

Not Found
The requested URL /sports/index.php was not found on this server.
Logged
solidghost
Hero Member
*****

Points: 3
Offline Offline

Posts: 550



« Reply #28 on: December 09, 2006, 07:26:12 »

Tinyportal. A CMS for SMF.
http://www.tinyportal.net/
Logged

solidghost
Hero Member
*****

Points: 3
Offline Offline

Posts: 550



« Reply #29 on: December 09, 2006, 07:28:54 »

I think should be
RewriteBase /sports/forumsidrectory
Logged

Pages: 1 [2] 3
  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!