| |
|
| :: |
| Author |
Message |
chernyc
Joined: 27 Jan 2007 Posts: 1
|
Posted: Sat Jan 27, 2007 8:08 am Post subject: simple rewrite problems (subdomain, new&reply topic....) |
|
|
hey how you doing dzw
I installed seo urlv2 from phpbb, and I found out that it was not the best
so I found yours in google......
ok, let's get into the problems...
here is my suitation
I myself had made a subdomain for my domain jwxinst.q168.net
as you know, when you creat a subdomain by cpanel
the system will creat a directory, and in this case, I create a subdomain "services"
so my subdomain is:
http://services.jwxinst.q168.net/
all right.... so I installed my phpBB2.0.22 in public_html/services/**
so it really doesn't matter about which to use....
you can access phpBB by either
http://jwxinst.q168.net/services
or via subdomain
http://services.jwxinst.q168.net/
well I perfer the subdomain.....
I had installed the cyber alien mod, and plus yours simple rewrite mod, and no any other mods....
I upload .htaccess from contrib\htaccess\english\folder_install
and I put it inside "services", and the robot.txt as well.....
so I checked.... everything seems working fine but few issues....
please first click on the subdomain
http://services.jwxinst.q168.net/
issues (1)
when I access via that subdomain, and clicked on the phpBB logo
the url appeared to be http://services.jwxinst.q168.net/index.html
and the pages access as " The page cannot be found"
if I click on "yourdomain.com ", it still access "the page canoot be found"
issues (2)
so I went back to your isntruction, and I opened up the phpbb_seo_class.php....
I did changed 'index' => '' to 'index' => 'index.html'
so I keep looking down to see the codes...
I add .html(as shown in red) to the following code
| Quote: | | $this->url = PHPBB_URL . $this->seo_static['index.html']; |
if I do that, the logo on the index will show a url of http://services.jwxinst.q168.net/ only(without index.html)
issues(3)
I accessed on this page
http://services.jwxinst.q168.net/topic1.html
and I want to reply, but I could not
issues (4)
I accessed on viewfourm
http://services.jwxinst.q168.net/forum1.html
and I could not open new topic either....
issues (5)
when I installed phpBB2.0.22 on my server, I did not make subdomain
so the config setup had been set up like this
[img]http://img215.imageshack.us/img215/2100/1fb4c6cf284mr5.jp[/img]
so when I had installed this mod and I made the subdomain, I changed it to this
this setting will work for most of the pages... so far I think... beacuse there are so many issues..... |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
Posted: Sat Jan 27, 2007 12:14 pm Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
And welcome
So First thing, it's not your goal to allow access to your phpBB install via two different domains (a sub-domain is a domain )
And that's the cause for almost all your issues here, as on one side (the main domain one) it's installed in the service/ folder, and on the other hand (subdomain case) it's installed at the (sub-)domain's root.
You must make a choice here, either sub or main domain.
So if you prefer the sub-domain setting, you should use the root_install .htaccess in the service/ folder.
Implementing the www prefix redirection in it will make sure no access from the main domain will be allowed (everything will be HTTP 301 redirected to the sub domain).
So this make a clue for issue 1)
Issue 2) :
Just do not change :
| Code: | | $this->url = PHPBB_URL . $this->seo_static['index.html']; |
'index' => '' to 'index' => 'index.html' is enough.
Issues 3) and 4) is just .htaccess problem, will work once you use the root install one in the sub-domain's root, thus the service/ folder.
For the 5th one, if you plan to share sessions between the main and sub domain, as there are installed in the same folder, (the main one), you'll just need to set :
| Quote: | | Domain name : .jwxinst.q168.net (noticed the dot ".") |
Your other settings are correct.
So this way, user won't loose sessions if they browse from the forum in the sub-domain to the main domain, in case it's sharing sessions.
Will work for all cases as well, so keep this cookie setting
++ |
_________________ 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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
|
| Back to top |
|
 |
chernyc1
Joined: 27 Jan 2007 Posts: 6
|
Posted: Sat Jan 27, 2007 7:05 pm Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
oh man(sorry for register a new account beacuse something wrong...I can't tell you at this movment, beacuse may confuse you a bit...)
you got patient helping everyone in the form for support
I'm gracfully thank you for your replies
well, I'm a newbie for Apache server, like making changing for Apache
i'm quite okay with the programming but not this....
I finally thought that if using subdomain will be kind of messy....
i want to get some helps for simple domain....
okay now I had my phpbb files and sud-folder under public_html/fourm/**
right?
so I want to access domain like http://www.jwxinst.q168.net/forum/**
I looked at your referrences and I currently not getting it....
I did uploaded .htaccess (\folder_install) under /forum/**
and if you access http://jwxinst.q168.net/forum/
the url will redirect to http://www.jwxinst.q168.net/forum/
I think this is a setting by the server itself....
so I went to the control panel and for the cofing, I renew all the setting
and no matter which prefix you are access by...
either with www. or without www
all pages that has .html are currently not working, getting a 404 error
issues (1)
what was wrong with my htaccess setting?
issues (2)
how do i use rewrite base + cond to impenemt that www.jwxinst.q168.net/forum/ is only to use, not jwinst.q168.net/forum/ ?
I really don't understand a bit of these code
what do the words highlight by red mean? and the blue?
actually this is the confusion for the entire thing
I made myself that first like the following
| Code: | RewriteCond %{HTTP_HOST} ^jwxinst.q168\.net [NC]
RewriteRule (.*) http://www.jwxinst.q168.net/$1 [QSA,R=301,L] |
and it was not working, so i change it but did not work either
| Code: | RewriteCond %{HTTP_HOST} ^jwxinst.q168\.net\forum\ [NC]
RewriteRule (.*) http://www.jwxinst.q168.net/forum/$1 [QSA,R=301,L] |
|
|
|
| Back to top |
|
 |
chernyc1
Joined: 27 Jan 2007 Posts: 6
|
Posted: Sat Jan 27, 2007 10:32 pm Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
oh sorry I made you a confuison, haha
| Quote: | | Forgot to mention, if you plan to migrate from SEO URL V2 to one of the phpBB SEO mod rewrite, please start a new topic for this, as there are some additional steps to follow to migrate properly (HTTP redirect everything ) |
nono@@ i had seo urlv2 on my computer(localhost)
the simple mod rewrite is currently installed on server (the actually phpbb forum I want to use) |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
Posted: Sun Jan 28, 2007 12:44 pm Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
| chernyc1 wrote: | | oh man(sorry for register a new account because something wrong...I can't tell you at this movment, beacuse may confuse you a bit...) |
If it's related to the phpBB SEO web site, please report
| chernyc1 wrote: |
okay now I had my phpbb files and sud-folder under public_html/fourm/**
right? |
So you need to put your .htaccess in the public_html/, eg the domain's root
And this time you'll have to use the "folder install" one, replacing phpbb/ with forum in it.
The www prefix redirection is something we should discuss after or elsewhere, one thing at a time is more efficient
++ |
_________________ 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 |
|
 |
chernyc1
Joined: 27 Jan 2007 Posts: 6
|
Posted: Sun Jan 28, 2007 4:30 pm Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
| dcz wrote: |
So you need to put your .htaccess in the public_html/, eg the domain's root
|
sorry for bothering you again
since my host provides my seveices "cpanel"
and currently I'm using the cpanel functions some redirections and settings
so I did not know what to do since the root (public_html) already had a .htaccess
so I thought I should added the codes from "htaccess from folder install" and pasted the codes into the htaccess in the public_html
so what I did was:
1. ) open the htaccess from folder install
2. ) copy the codes
3. ) open the htacces in the public_html
4. ) paste the codes
but did not work either
I tried to paste the code on the very top, I meant did not work at any position I pasted on
you can take a look on my htaccess (s)
http://freedom.jwxinst.q168.net/download.php?id=27
I really am sorry of this, beacuse newbie to such settings....
just bit confuse....
oh well, i guess I will first finish these issues and I will report the problem..
thank you for your great help again  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
Posted: Sun Jan 28, 2007 4:45 pm Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
Well it should work adding :
| Code: |
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
# RewriteRule ^forum/.*/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/cat([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/forum([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/forum([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
##################################################### |
at the end of your .htaccess, the one located in public_html, at least if mod_rewrtie module is here available.
Possible cause beside mod_rewrite unavailable, an .htaccess in forum/, in case, delete it, or the thing with slashes "/".
Try getting rid of the "/" o the beginning of /forum/, like this :
| Code: | # CATEGORIES
RewriteRule ^forum/cat([0-9]+)\.html$ forum/index.php?c=$1 [QSA,L] |
For all RewriteRules.
As well, it is possible that under some circumstances, you'll have to use :
| Code: | # CATEGORIES
RewriteRule ^/?forum/cat([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L] |
Noticed the "/?" ? and try without the slash as well just in case
++ |
_________________ 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 |
|
 |
chernyc1
Joined: 27 Jan 2007 Posts: 6
|
Posted: Mon Jan 29, 2007 3:36 am Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
i had done all my best and did not working
and plus, I didn't know if the host had already turn on "mod rewrite" for all customers
but I want to knwo if there is anything I could try to test if mod rewrite is turn on for my server |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
Posted: Mon Jan 29, 2007 11:13 am Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
The easiest way to make sure about mod_rewrite is to do the following :
Make a basic html page, with some content in it, just t o make sure you'll recognize it while browsing, and name it found.html
Then upload it on your ftp, at the root level.
Then use this as your root's .htaccess
| Code: |
RewriteEngine on
RewriteBase /
RewriteRule ^lost.php$ /found.html |
Obviously, lost.php does not physically exist here.
Then, load example.com/lost.php, you should fell on found.html with lost.php in url.
If it does not work at this stage, you can try this one instead :
| Code: |
RewriteEngine on
RewriteBase /
RewriteRule ^lost.php$ found.html |
If not again, I am afraid chances for mod_rewrite support on your server are almost all gone. You'll have to contact you server admin to ask for 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 |
|
 |
chernyc1
Joined: 27 Jan 2007 Posts: 6
|
Posted: Mon Jan 29, 2007 6:07 pm Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
oh great, the webpage appeared!!
i had tested 3 times
first time, htaccess only contains
| Code: | RewriteEngine on
RewriteBase /
RewriteRule ^lost.php$ /found.html |
second time, htaccess only contains
| Quote: | RewriteEngine on
RewriteBase /
RewriteRule ^lost.php$ found.html |
third time using the original htaccess by adding the first testing code
they all working fine
dzw... I must sorry for this, this is very tricky to solve the problem
or maybe I did something wrong...
oh Jezzzz |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
|
| Back to top |
|
 |
chernyc1
Joined: 27 Jan 2007 Posts: 6
|
Posted: Tue Jan 30, 2007 5:41 pm Post subject: Re: simple rewrite problems (subdomain, new&reply topic....) |
|
|
i hope we can getting this issue done
i had a blog system
in the cpanel it had an optoion for Apache URL Rewrite
I turned it on and the url became url-htm
so i believed that mod rewrite is absoultely working at this movment
but the htaccess
oh Jezzz, not working properly |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|