Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1765 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     TalkFreelance Information     Suggestions and Feedback :

.htaccess edit

Thread title: .htaccess edit
Closed Thread  
Page 4 of 6 < 1 2 3 4 5 6 >
    Thread tools Search this thread Display Modes  
02-05-2007, 06:48 AM
#31
mikeroq is offline mikeroq
mikeroq's Avatar
Status: Member
Join date: Feb 2006
Location: Ponca City, OK
Expertise: xHTML/CSS/PHP/Computer Tech
Software: Photoshop, Notepad++, Winamp
 
Posts: 332
iTrader: 5 / 100%
 

mikeroq is an unknown quantity at this point

Send a message via AIM to mikeroq Send a message via MSN to mikeroq Send a message via Yahoo to mikeroq

  Old

Yes, all you need to do is make your cookie domain .talkfreelance.com that will ensure that the cookies work on www.talkfreelance.com and talkfreelance.com. The user should be left with the choice of how to get to the site. Its a simple 20 second change that should have been done when this forum was started.

02-05-2007, 03:18 PM
#32
jd. is offline jd.
Status: TFL Veteran
Join date: May 2005
Location: FL, USA
Expertise: Design
Software: Photoshop
 
Posts: 3,010
iTrader: 5 / 100%
 

jd. is on a distinguished road

Send a message via MSN to jd.

  Old

yes but will give tfl a higher pr. if they make it all one domain. that way its not getting split stuff

02-05-2007, 04:25 PM
#33
Gareth is offline Gareth
Status: Back in business...
Join date: May 2005
Location:
Expertise:
Software:
 
Posts: 1,317
iTrader: 13 / 100%
 

Gareth is on a distinguished road

Send a message via MSN to Gareth

  Old

Originally Posted by juliov View Post
yes but will give tfl a higher pr. if they make it all one domain. that way its not getting split stuff
Pardon?

02-05-2007, 04:41 PM
#34
mikeroq is offline mikeroq
mikeroq's Avatar
Status: Member
Join date: Feb 2006
Location: Ponca City, OK
Expertise: xHTML/CSS/PHP/Computer Tech
Software: Photoshop, Notepad++, Winamp
 
Posts: 332
iTrader: 5 / 100%
 

mikeroq is an unknown quantity at this point

Send a message via AIM to mikeroq Send a message via MSN to mikeroq Send a message via Yahoo to mikeroq

  Old

If you want them to have a higher PR then all the links to TalkFreelance that don't have the WWW should be changed to that. PageRank comes from links. It depends on what links it follows. Like on some sites thatsite.com/pagea will have more PageRank then thatsite.com.

02-05-2007, 08:12 PM
#35
kiplarson is offline kiplarson
Status: I'm new around here
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 15
iTrader: 0 / 0%
 

kiplarson is on a distinguished road

  Old

Originally Posted by Chaos King View Post

Code:
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
So if I make a .htaccess file and put the above code in there, my sites will automatically go from http:// to always http://www. ?

Because this is something I've tried to figure out for a while, but never got around to doing. I want to do that so it will hopefully improve my PR. That and it's annoying to have the other issue with not being logged in when typing in the other on accident.

02-05-2007, 10:39 PM
#36
Gareth is offline Gareth
Status: Back in business...
Join date: May 2005
Location:
Expertise:
Software:
 
Posts: 1,317
iTrader: 13 / 100%
 

Gareth is on a distinguished road

Send a message via MSN to Gareth

  Old

Originally Posted by kiplarson View Post
So if I make a .htaccess file and put the above code in there, my sites will automatically go from http:// to always http://www. ?
Yes it will - I use it on all of my sites

02-10-2007, 04:55 AM
#37
kiplarson is offline kiplarson
Status: I'm new around here
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 15
iTrader: 0 / 0%
 

kiplarson is on a distinguished road

  Old

Originally Posted by Gareth View Post
Yes it will - I use it on all of my sites
Just open the .htaccess file, paste that code in (overwriting whatever else may or may not be there) and it's done?

Does this help with the PR? like the PR from the non www will move over to the www?

02-27-2007, 01:55 PM
#38
Mark Bolyard is offline Mark Bolyard
Mark Bolyard's Avatar
Status: Member
Join date: Sep 2005
Location: Maryland
Expertise:
Software:
 
Posts: 431
iTrader: 3 / 100%
 

Mark Bolyard is on a distinguished road

Send a message via MSN to Mark Bolyard

  Old

Just out of curiosity, I'm familiar with redirecting using the above mentioned code in htaccess, however I lose my stylesheet in wordpress. My existing htaccess looks like this:


Code:
php_value upload_max_filesize 50M
php_value post_max_size 50M

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
However when I change it to this:

Code:
php_value upload_max_filesize 50M
php_value post_max_size 50M

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
or this:

Code:
php_value upload_max_filesize 50M
php_value post_max_size 50M

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

RewriteCond %{HTTP_HOST} ^www\.markbolyard\.com [nc]
RewriteRule (.*) http://markbolyard.com/$1 [R=301,L]
That's where I have the problems. Do I have things in the wrong order? Perhaps I need to set something differently in my wordpress theme?

The first part of the code is to achieve the SE friendly URL re-writes, and the second of course, is to forward my domain to the www version.

My site displays fine without the redirect code to go to the www version, but as soon as I add it, just as I mentioned, the site appears to not be able to find the css file. I even viewed the source when I viewed my site this way, and all urls seem to point to the correct locations as far as the CSS and image files.

Thanks in advance for any suggestions.

02-27-2007, 08:56 PM
#39
Bumpaneer is offline Bumpaneer
Status: I'm new around here
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

Bumpaneer is on a distinguished road

  Old

Thanks for the code on the htaccess rewrites, will definately use this on my site.

02-28-2007, 05:39 AM
#40
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

How is this not still implemented? I see hundreds of simple tasks, and now it seems either people are too lazy to implement them or they don't think it's good enough. Which the community begs to differ.

Closed Thread  
Page 4 of 6 < 1 2 3 4 5 6 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed