phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
sub domain in my site redirect to forum index

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
::  
Author Message
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

sub domain in my site redirect to forum indexPosted: Fri Apr 13, 2007 4:11 am    Post subject: sub domain in my site redirect to forum index

helllo

i add sub domin in my site

with .htaccess and install script in this domain

this script depend on mod rewrite

but i have problem when i write

http://fr.paramegsoft.com

its convert me to my forum

but http://fr.paramegsoft.com/index.php

is work good

i dont know why Very Happy

i want to know this becouse my simple mod rewrite or what

sorry if it was dont belive phpbb Embarassed Rolling Eyes

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

sub domain in my site redirect to forum indexPosted: Fri Apr 13, 2007 8:59 am    Post subject: Re: sub domain in my site redirect to forum index

Well, I need more info to find out.

1), where is the fr. sub domain installed physically on the server
2) where is the www. sub domain installed physically on the server

And then, is there an .htaccess where the fr. sub is linked ? and what is inside of it ?

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

sub domain in my site redirect to forum indexPosted: Fri Apr 13, 2007 9:15 am    Post subject: Re: sub domain in my site redirect to forum index

dcz wrote:
Well, I need more info to find out.

1), where is the fr. sub domain installed physically on the server
2) where is the www. sub domain installed physically on the server

And then, is there an .htaccess where the fr. sub is linked ? and what is inside of it ?

++


welcome dcz Smile
yes there is .htaccess in fr sub

i put all files in fr not in www

i have not www in fr sub

this is

.htaccess to fr sub
http://www.paramegsoft.com/hta.rar

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

sub domain in my site redirect to forum indexPosted: Fri Apr 13, 2007 10:09 am    Post subject: Re: sub domain in my site redirect to forum index

Well your .htaccess does not seems to be able to redirect this way, unless it's linking a request to a script being the one to redirect us.

I need to know in what folder is the fr. sub installed, relatively to where the main domain (the one with www) is installed.

It could be because of it being installed inside the www folder or something like that.

As well, try playing with slashes "/" in your rewriterules. Some are like this :

Code:
RewriteRule ^addnews(/?)+$ /?do=addnews [L]


Slash before script, even though ? isn't a script.


and other like this :
Code:

RewriteRule ^static/(.*).html(/?)+$ index.php?do=static&page=$1 [L]

no slashe before index.php.

So try adding a slash before all scripts, it could be it.

If not enough, you can try to set the full absolute path there, to make sure the vhost settings are not tricking us :
Code:

RewriteRule ^static/(.*).html(/?)+$ /home/user/id/sd/fr/index.php?do=static&page=$1 [L]


Where :
Code:
/home/user/id/sd/fr/

would be the full unix path to where the fr sub domain is installed.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

sub domain in my site redirect to forum indexPosted: Fri Apr 13, 2007 10:31 am    Post subject: Re: sub domain in my site redirect to forum index

i install it in (public_html/fr)

i make redirct now to fr

maybe it be reason Crying or Very sad

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

sub domain in my site redirect to forum indexPosted: Fri Apr 13, 2007 11:36 am    Post subject: Re: sub domain in my site redirect to forum index

If the fr subdomain is installed in public_html/fr/

and assuming the main domain is installed in public_html/

There should not be problems if the fr sub's .htaccess is in public_html/fr/.

The public_html/fr/ folder, when it through the sub domain should be fully independent from the main domain's folder and settings.

It could come from your dns settings, have you tried adding a slash in your .htaccess ?

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

sub domain in my site redirect to forum indexPosted: Fri Apr 13, 2007 12:57 pm    Post subject: Re: sub domain in my site redirect to forum index

the problem not in the script

any subdomain i do dont work

like

http://translate.paramegsoft.com

work like

http://translate.paramegsoft.com/index.php

does i shoul be add www folder in the subdomain

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

sub domain in my site redirect to forum indexPosted: Fri Apr 13, 2007 1:26 pm    Post subject: Re: sub domain in my site redirect to forum index

i know the problem Very Happy

it was becouse i make redirct

http://www.paramegsoft.com

to

http://www.paramegsoft.com/forum/

now i want to know how i do it without lost rank to this page and redirct

it automatic

like


-http://www.sitenamecom/info

to

-http://info/sitename.com

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

sub domain in my site redirect to forum indexPosted: Sat Apr 14, 2007 9:27 am    Post subject: Re: sub domain in my site redirect to forum index

Redirecting
-http://www.sitenamecom/info

to

-http://info.sitename.com

can be done very easily, you just need to implement the www prefix redirection (method n°2) for the sub-domain, in the sub-domain folder's .htaccess.

You could use something like :

Code:
RewriteCond %{HTTP_HOST} !^info\.sitename\.com$ [NC]
RewriteRule ^(.*) http://info.sitename.com/$1 [QSA,L,R=301]


And voilà, anything being different from -http://info.sitename.com will be redirected to it, including -http://www.sitenamecom/info.

Each sub domain is to be considered as a separate domain with a specific folder (even though several domain could be linked to the same folder) thus needing a specific .htaccess (or part of in case several are linked to the same folder) et all.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

sub domain in my site redirect to forum indexPosted: Sat Apr 14, 2007 9:41 am    Post subject: Re: sub domain in my site redirect to forum index

dcz wrote:
Redirecting
-http://www.sitenamecom/info

to

-http://info.sitename.com

can be done very easily, you just need to implement the www prefix redirection (method n°2) for the sub-domain, in the sub-domain folder's .htaccess.

You could use something like :

Code:
RewriteCond %{HTTP_HOST} !^info\.sitename\.com$ [NC]
RewriteRule ^(.*) http://info.sitename.com/$1 [QSA,L,R=301]


And voilà, anything being different from -http://info.sitename.com will be redirected to it, including -http://www.sitenamecom/info.

Each sub domain is to be considered as a separate domain with a specific folder (even though several domain could be linked to the same folder) thus needing a specific .htaccess (or part of in case several are linked to the same folder) et all.

++


thank you dcz i tired you with me Embarassed

i used it

redirect 301 /games/ http://game.paramegsoft.com/

and changed folder games >>http://game.paramegsoft.com/

does it will redirct my page rank which was in

-http://www.paramegsoft.com/games

to

http://game.paramegsoft.com/

without any problems in nexy update Smile

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

sub domain in my site redirect to forum indexPosted: Sat Apr 14, 2007 10:07 am    Post subject: Re: sub domain in my site redirect to forum index

Well, that's what http 301 do, they allow PageRank transmission, obviously after the PageRank will be updated again.
But in this case, you're changing the contents domain (from the main one to a sub) so the final PageRank will depends as well on how this new domain is SEOed and backlinked.

But, you should take into account the fact you'd be loosing the games/ folder content on your man domain if you put it in a sub-domain.

Creating sub-domains can be efficient, but it's all a matter of proportion, you need the main domain, the one being the most linked to host the most content IMHO.
And you'll have to work on external backlinks for the added sub-domains as well to build up good PR.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

sub domain in my site redirect to forum indexPosted: Sat Apr 14, 2007 10:18 am    Post subject: Re: sub domain in my site redirect to forum index

sure the bad in sub domin more back links and more work

but its give more results to the site in results Smile

sure i build fresh back links every times

but another good something for subdomins is Sitelinks

when google find many links to your site in first page

when u write your site name that good to have site links fast maybe Laughing

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

sub domain in my site redirect to forum indexPosted: Sat Apr 14, 2007 10:21 am    Post subject: Re: sub domain in my site redirect to forum index

You mean like : http://www.google.fr/search?q=phpbb+seo&hl=fr Mr. Green

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

sub domain in my site redirect to forum indexPosted: Sat Apr 14, 2007 10:37 am    Post subject: Re: sub domain in my site redirect to forum index

dcz wrote:
You mean like : http://www.google.fr/search?q=phpbb+seo&hl=fr Mr. Green


Very Happy

yes thats the first way to take sites linke from google

like it


iwant to be like that Laughing

or have many results in the first page

thats not mean the urls like

-http://www.sitename.com/foldername

have not chance to get sites links

but sub folders may be fast

i think thats Wink

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

sub domain in my site redirect to forum indexPosted: Sat Apr 14, 2007 12:46 pm    Post subject: Re: sub domain in my site redirect to forum index

I don't think so, at least that -http://www.sitename.com/foldername would have fewer chances to show up in site links than -http://foldername.sitename.com/.

I'll elaborate more while I'll answer to your post about site links, because so far, and that's what's your example shows, I saw far more site links being in the main domain than in a sub-domain.
I cannot find again an example showing sub-domains as site links, but I'm pretty sure I saw some, only it was on a really rare occurrence.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: