VBGAMER45 / prettyurls

Automatically exported from code.google.com/p/prettyurls
Other
0 stars 1 forks source link

How to add www front of pretty url mod? Board & Topics pages #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please provide URLs which show this problem (If you do not we cannot help
you):http://www.projectsona.com/forum/

Please describe this problem in detail:

I have troubleshooted past one day and what i have found the problem as follows

all the url are mentioned as www
forum is installd in subdir of a wp installation.
note, the .htaccess in wp root use www in front of domain name too.
smf has been setup with www too in domain name.

after activating pretty url for ALL the sections I get:

menu rewriting with www
section rewriting with www
board rewriting without www
topic rewriting without www

I must add www front of forum borad and topic pages its not working because of 
pretty url mod. How to add www front of website url.

Example : 

Old one : http://sitename.com/forum/source/posted-topic-url-page

New one (What i want) http://www.sitename.com/forum/source/posted-topic-url-page

Please help me what to do with pretty urls mod and which page i need to edit in 
pretty urp php pages.

What version of the mod, and what version of SMF are you using?

What other mods do you have installed?

prettyurls-1-0RC5.2
SMF 2.0.1

Please provide any additional information below.

Thanks Advance.

Original issue reported on code.google.com by rarthan...@gmail.com on 21 Nov 2011 at 6:55

GoogleCodeExporter commented 9 years ago
Do this through your .htaccess file.
The code is;

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Original comment by creates...@gmail.com on 31 Jan 2013 at 12:57

GoogleCodeExporter commented 9 years ago
When I add above code to my prettu url htaccess file, I am not able to modify 
any post.

Original comment by Saurabh1...@gmail.com on 18 Jan 2015 at 8:43