| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
googleandroid
Joined: 04 Dec 2007 Posts: 3
|
Posted: Wed Dec 05, 2007 3:37 am Post subject: WWW is not displaying in my URL |
|
|
Here is my htaccess file:
| Code: | <Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
RewriteEngine on
Rewriterule ^(.+)-f([0-9]*).html-(.+)$ ./viewforum.php?f=$2&$3
Rewriterule ^(.+)-(t|p)([0-9]*).html-(.+)$ ./viewtopic.php?$2=$3&$4
Rewriterule ^(.+)-f([0-9]*)s([0-9]*).html-(.+)$ ./viewforum.php?f=$2&start=$3&$4
Rewriterule ^(.+)-(t|p)([0-9]*)s([0-9]*).html-(.+)$ ./viewtopic.php?$2=$3&start=$4&$5
Rewriterule ^(.+)-f([0-9]*).html$ ./viewforum.php?f=$2&$3
Rewriterule ^(.+)-(t|p)([0-9]*).html$ ./viewtopic.php?$2=$3&$4
Rewriterule ^(.+)-f([0-9]*)s([0-9]*).html$ ./viewforum.php?f=$2&start=$3&$4
Rewriterule ^(.+)-(t|p)([0-9]*)s([0-9]*).html$ ./viewtopic.php?$2=$3&start=$4&$5 |
my url displays as -http://myurl.com
I want my url to include the WWW so it would look like -http://www.myurl.com
How can I do this? I need the above code in my htaccess to make my url rewrite mod work. |
|
|
| Back to top |
|
 |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Wed Dec 05, 2007 3:41 am Post subject: Re: WWW is not displaying in my URL |
|
|
| Hello, please take a look at this thread; Locking in www |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3384
|
Posted: Wed Dec 05, 2007 12:51 pm Post subject: Re: WWW is not displaying in my URL |
|
|
Well, this .htaccess does not comes from the phpBB SEO mod rewrite. But, it's not responsible for the www prefix. It's phpBB who builds the links, not the .htaccess.
Make sure you have the prefix ("www.example.com" vs "example.com") in your phpBB config (server name).
And, while you're at it, make sure you have .examle.com (noticed the dot, ".") as your cookie domain, to prevent duplicate sessions accross sub domains (www.example.com being one of the example.com subdomain).
The link Peter77 sugested is a good one to follow to make sure only one of these two will be used (will HTTP 301 redirect one to the other). |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |