Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-09-30 15:25:57

magicdream
Member
Registered: 2011-09-25
Posts: 15

URL Rewriting domain.tdl to www.domain.tdl redirection googlerank

Hello,
I would like to use a 403 redirection on my domain.tld domain name to www.domain.tld, I heard google like it only this way for the pagerank (please confirm this), so I created a .htaccess file into my adultscriptpro directory / and wrote in it:

//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.tld[nc]
RewriteRule ^(.*)$ http://www.domain.tld/$1 [r=301,nc]


And when I try to open domain.tld or www.domain.tld I get an error: "Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request."

Would you please like to tell me how to redirect my customers from the domain name without www to the www one and keeping it at the top of google. Thank you.


Debian
Apache2
Bind9

Offline

#2 2011-09-30 16:07:04

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: URL Rewriting domain.tdl to www.domain.tdl redirection googlerank

Edit the .htaccess file that comes with Adult Script Pro and above this line:

RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]

add:

RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]

This will redirect non-ww to www. I dont know if google only allows www to have pagerank sad


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2011-09-30 17:02:21

magicdream
Member
Registered: 2011-09-25
Posts: 15

Re: URL Rewriting domain.tdl to www.domain.tdl redirection googlerank

Thank you,
Well they're not only allowing www's, but they don't like when you have .domain.com and www.domain.com.

Offline

#4 2011-09-30 17:15:54

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: URL Rewriting domain.tdl to www.domain.tdl redirection googlerank

Yeah...thats true. They dont like to have both domains www and non-www.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2011-09-30 20:46:15

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: URL Rewriting domain.tdl to www.domain.tdl redirection googlerank

better to delete the www

how we delete www on ASP?


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#6 2011-10-01 05:57:44

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: URL Rewriting domain.tdl to www.domain.tdl redirection googlerank

Want to remove the www completly? If in config.php you dont have base_url set to www.domain.com, then you wont have any www urls.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB