 | Re: SEO Url MOD |  |
Posted: 05/06/2007 6:44 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 12:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
All I have in my .htaccess are the rewrite rules. The .htaccess file is in the root folder (domain root) but because of the rewrite rules /forum/ it works with the /forum folder
The thing I'm noticing with your forum path is you have put /vehicles/forum/
you should just use /forum/ (meaning leave the 'vehicles' part out. but then put the htaccess file into the vehicles root folder (not the domain root folder) as I’m guessing you have quite a few sites running of the host you are using hence you have a vehicles folder...
As for you having all the FrontPage rules and redirects in the htaccess file they shouldn't be needed. If you used an FTP program say FileZila which is free then you'd most likely not get those FrontPage commands and redirects being written to the htacces file. Leaving you with just the forum rewrites in the htaccess file instead.... which is how mine is set up and works.
Still try doing the above first. But yeah, if you do have to leave the FrontPage stuff in the .htaccess file be sure to leave it at the bottom. Have your rewrites rules at the top!
Let me know how you get on Abdul |
|
|
 |
 |
| Back to Top |
|
|
 | Re: SEO Url MOD |  |
Posted: 05/06/2007 6:54 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 12:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
| abdulbasit wrote:
|
If i edit the files from FP, i can restore backups easily. And just now i am trying to copy the MOD folder to vehicles from SmartFTP but this is too slow and not copying it. So to me FP is better. I will talk to my host again. I think they are sleeping
|
I guess the reason smartfTP doesn't work very fast for you is something to do with your firewall blocking the program or maybe just limiting the outbound connection from FTP to your host where you're wanting to upload files too. Or it could be that you have a really slow pc, I doubt this is the case though because you run many websites and having a slow pc to maintain all your website would be a right nightmare otherwise lol. It could be a firewall problem though. Which firewall protection do you use Abdul as normally it’s just a case of permitting the firewall to allow an inbound/outbound connection with whatever program it is you wanting to use… |
|
|
 |
 |
| Back to Top |
|
|
 | Re: SEO Url MOD |  |
Posted: 05/06/2007 7:05 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 3:39 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: SEO Url MOD |  |
Posted: 05/06/2007 7:17 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 12:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
seems ok to me  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: SEO Url MOD |  |
Posted: 05/06/2007 7:40 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 3:39 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Thanks a lot Chris for being with me and helped me a lot.
One last time i will disturb you for this MOD can you please check www.funwadi.com/forum and verify that is working fine everywhere ? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: SEO Url MOD |  |
Posted: 05/06/2007 7:49 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 3:39 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Hi Chris,
I must say you to install Guest_session_mod as it's said in phpbb-seo.com because This mod removes session id for guests from url and this way guests who don't have cookies like different robots will use correct urls. It can be used to allow googlebot and other search engines to spider your forum correctly.
And you know all the search engines while indexing our page, they are guests too and they index with the sid id which is not good. I have just installed this MOD and hope it will give some benefits along with the Advanced Rewrite MOD.
Thanks once again Chris for helping me all the way and NightRider as well as rb2d2.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: SEO Url MOD |  |
Posted: 05/06/2007 8:14 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 12:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
No problem... glad to help
As to the guest session mod I'll try and install this but is it meant to be installed first? I already have the rewrite mod installed you see. Is it ok to install the session mod after...  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: SEO Url MOD |  |
Posted: 05/06/2007 8:19 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 3:39 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Yeah, no problem if you install after that. By the way, i just asked for some more help at phpbb-seo and i wrote to them
| Quote:
|
Thanks a lot Smile
I am so happy Sir that you can't even imagine it Wink
You are great and your support as well.
Can you please check and verify it's working everywhere fine or not www.funwadi.com/forum
By the way Sir, what other MODs i should install such as Guest_session_mod.
Can you tell me that the pages which google have indexed are around 9,600 for my site so what will happen to them? How should i keep them also as well as let search engine to index the new one's too?
|
and got reply
| Quote:
|
Well it looks like it's working great Very Happy
Now, since you had 9860 indexed page at Google for your forum, I'm sure you'll be happy to hear the zero duplicate (advanced version) http://www.phpbb-seo.com/boards/zero-duplicate/advanced-zero-duplicate -vt678.html is the perfect mod to go with the mod rewrite, it will HTTP 301 redirect all previously indexed url to their new rewritten ones Very Happy
Thing like : http://www.phpbb-seo.com/boards/viewforum.php?f=45 and http://www.phpbb-seo.com/boards/where-is-the-dupe-vf45/ Wink
Then, my advise would go for GYM sitemaps (http://www.phpbb-seo.com/boards/gym-sitemaps/google-yahoo-msn-sitemap s-and-rss-vt21.html) and mx sitemaps (http://www.phpbb-seo.com/boards/phpbb-seo-toolkit/mx-sitemap-module-v t4.html), as well as Optimal titles(http://www.phpbb-seo.com/boards/phpbb-seo-toolkit/optimal-title s-vt665.html) and dynamic meta tags mods(http://www.phpbb-seo.com/boards/phpbb-seo-toolkit/phpbb-seo-dynam ic-meta-tags-vt74.html), all really useful SEO wise.
|
Well, I will now look at all the MODs which the admin of that site told me and if possible will install all because all are better for SEO.
Good Luck with it  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: SEO Url MOD |  |
Posted: 05/06/2007 8:26 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 12:39 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Hmm I don't have the zero duplicate advanced version I don't think all mines says is this phpBB-SEO-Advanced-mod-Rewrite_V_0.2.2
So I guess yours is different to mine. The thing is my forum is new so there’s no index to get lost although I suppose I could do with using the one you’re using anyway...?
As to the session id's is this one you used
| Code:
|
#################################################################
## MOD Title: Guest Sessions MOD
## MOD Version: 0.04
## MOD Author: CyberAlien <no@public_email> (Vjacheslav Trushkin) http://www.phpbbstyles.com
## MOD Description:
## This mod removes session id for guests from url and this way
## guests who don't have cookies like different robots will use
## correct urls. It can be used to allow googlebot and other
## search engines to spider your forum correctly.
##
## Installation Level: Easy
## Installation Time: 1-2 Minutes
## Files To Edit (1): includes/sessions.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]---------------------------------------------
#
includes/sessions.php
#
#-----[ FIND ]---------------------------------------------
# around line 157
$sql = "UPDATE " . SESSIONS_TABLE . "
SET session_user_id = $user_id, session_start = $current_time, session_time = $current_time, session_page = $page_id, session_logged_in = $login, session_admin = $admin
WHERE session_id = '" . $session_id . "'
AND session_ip = '$user_ip'";
#
#-----[ REPLACE WITH ]---------------------------------------
#
$sql_ip = $user_id == ANONYMOUS ? " AND session_ip = '$user_ip'" : '';
$sql = "UPDATE " . SESSIONS_TABLE . "
SET session_ip = '$user_ip', session_start = $current_time, session_time = $current_time, session_page = $page_id, session_logged_in = $login, session_admin = $admin
WHERE session_id = '" . $session_id . "' $sql_ip
AND session_user_id = '$user_id'";
#
#-----[ FIND ]---------------------------------------------
# around line 210
$SID = 'sid=' . $session_id;
#
#-----[ REPLACE WITH ]---------------------------------------
#
$SID = $user_id > 0 ? 'sid=' . $session_id : '';
#
#-----[ FIND ]---------------------------------------------
# around line 288
$SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : '';
#
#-----[ REPLACE WITH ]---------------------------------------
#
$SID = $userdata['user_id'] > 0 ? (($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : '') : '';
#
#-----[ FIND ]---------------------------------------------
# around line 340
//
// If we reach here then no (valid) session exists. So we'll create a new one,
#
#-----[ BEFORE, ADD ]---------------------------------------
#
elseif(empty($sessiondata))
{
// try to login guest
$sql = "SELECT u.*, s.*
FROM " . SESSIONS_TABLE . " s, " . USERS_TABLE . " u
WHERE s.session_ip = '$user_ip'
AND s.session_user_id = " . ANONYMOUS . "
AND u.user_id = s.session_user_id
LIMIT 0, 1";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql);
}
$userdata = $db->sql_fetchrow($result);
if ( isset($userdata['user_id']) )
{
if ( $current_time - $userdata['session_time'] > 60 )
{
$sql = "UPDATE " . SESSIONS_TABLE . "
SET session_time = $current_time, session_start = $current_time, session_page = 0
WHERE session_id = '" . $userdata['session_id'] . "'";
if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error updating sessions table', '', __LINE__, __FILE__, $sql);
}
}
return $userdata;
}
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: SEO Url MOD |  |
Posted: 05/06/2007 8:35 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 3:39 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
| Quote:
|
Hmm I don't have the zero duplicate advanced version I don't think all mines says is this phpBB-SEO-Advanced-mod-Rewrite_V_0.2.2
So I guess yours is different to mine. The thing is my forum is new so there’s no index to get lost although I suppose I could do with using the one you’re using anyway...?
As to the session id's is this one you used
|
Oh yeah, you don't need zero duplicated advanced version because there is nothing you will loose as your forum is just new, so it' good for you, you won't loose anything
Yeah, i used the same session id's MOD installed on my forum. By the way, you can look at other MODs which i mentioned as I am looking into them too.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|