Tricked Out News

Welcome to TON. This site is dedicated to development of addons for the RavenNuke™ CMS
Follow Us:
Tricked Out Mods: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how redirect non-wwwURLs to www in file .htaccess for 50$
 Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> NukeC
View previous topic :: View next topic  
Author Message
skyfly
I might as well work here
I might as well work here


Joined: Dec 22, 2010
Posts: 50

Reputation: 3.7Reputation: 3.7Reputation: 3.7

PostPosted: Wed Dec 22, 2010 12:09 pm 
Post subject: how redirect non-wwwURLs to www in file .htaccess for 50$
Reply with quote

Hi,

how redirect non-wwwURLs to www in file .htaccess ,

and I am using too mod_rewrite , so my when redirect non-wwwURLs to www

it never show up http://www.mysite.com/download.html

but it show http://www.mysite.com/modules.php?name=download

and I ready to pay 50$ for help to make it redirect right and my site using nuke !!!.

Thanks , and wiating for help !!! .
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Wed Dec 22, 2010 12:28 pm 
Post subject:
Reply with quote

Are you using RavenNuke? If so, ShortLinks is already included and you just need to add the mod_rewrite rules to the .htaccess and activate ShortLinks in the rnconfig.php file.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message
skyfly
I might as well work here
I might as well work here


Joined: Dec 22, 2010
Posts: 50

Reputation: 3.7Reputation: 3.7Reputation: 3.7

PostPosted: Thu Dec 23, 2010 12:24 am 
Post subject:
Reply with quote

I am using nuke 8 maybe !!! .
and I am using shortlink with all add in the .htaccess

but you have the same thing in your site

your site workin with both non-wwwURLs and www

- so what I want is redirect non-wwwURLs to www ,

it will be so nice if you help me to make it work right and I am ready to pay 50$ if work ,

thanks,
  
Back to top
View user's profile Send private message
skyfly
I might as well work here
I might as well work here


Joined: Dec 22, 2010
Posts: 50

Reputation: 3.7Reputation: 3.7Reputation: 3.7

PostPosted: Thu Dec 23, 2010 12:34 am 
Post subject:
Reply with quote

here you have both working

http://trickedoutnews.com/ftopict-131.html


http://www.trickedoutnews.com/ftopict-131.html
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Thu Dec 23, 2010 7:24 am 
Post subject:
Reply with quote

Try adding this to you htaccess file just under where it says RewriteEngine on

Code:
RewriteCond %{HTTP_HOST} ^your_domain\.com$ [NC]

RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301,L]


You will need to replace your_domain.com with your correct domain name.
_________________
Tricked Out News
  

Last edited by bobby on Thu Dec 23, 2010 7:51 am; edited 1 time in total
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Thu Dec 23, 2010 7:33 am 
Post subject:
Reply with quote

And if that doesn't work, try this

Code:
RewriteCond %{HTTP_HOST} ^your_domain\.com

RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]


again, you would need to change your_domain.com to your actual domain.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message
skyfly
I might as well work here
I might as well work here


Joined: Dec 22, 2010
Posts: 50

Reputation: 3.7Reputation: 3.7Reputation: 3.7

PostPosted: Thu Dec 23, 2010 9:08 am 
Post subject:
Reply with quote

both is working and I uesed it long time ago but not working well if you use ShortLinks


Quote:
how redirect non-wwwURLs to www in file .htaccess ,

and I am using too mod_rewrite , so my when redirect non-wwwURLs to www

it never show up http://www.mysite.com/download.html

but it show http://www.mysite.com/modules.php?name=download




and you can you have both workig non-wwwURLs and www becuse search engines consider duplicate content and be duplicate content ,

and that why I want only www will be working and not both non-wwwURLs and www , but it is working right when it redirect form non-www URLs to www it will ending like /modules.php?name=download
and I want it will be ending /download.html .

I hope now you do understanding what I mean it !!! .

Thanks,
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Thu Dec 23, 2010 9:18 am 
Post subject:
Reply with quote

I don't fully understand what you are wanting.

Let me try to understand what you need.

Does ShortLinks work correctly on your website with the www prefix and without the www prefix?

Are you wanting to change how ShortLinks functions?

Does ShortLinks function differently when the www prefix is used?
_________________
Tricked Out News
  
Back to top
View user's profile Send private message
spasticdonkey
Super Dev Donkey
Super Dev Donkey


Joined: May 08, 2009
Posts: 57

Reputation: 324Reputation: 324
votes: 1

PostPosted: Thu Dec 23, 2010 6:11 pm 
Post subject:
Reply with quote

If you are using NukeSentinel (you should be) you can set "Force Nuke URL" to yes. It will force the site url set in your acp preferences..
  
Back to top
View user's profile Send private message
skyfly
I might as well work here
I might as well work here


Joined: Dec 22, 2010
Posts: 50

Reputation: 3.7Reputation: 3.7Reputation: 3.7

PostPosted: Fri Dec 24, 2010 12:21 pm 
Post subject:
Reply with quote

bobby wrote:
I don't fully understand what you are wanting.

Let me try to understand what you need.

Does ShortLinks work correctly on your website with the www prefix and without the www prefix?

Are you wanting to change how ShortLinks functions?

Does ShortLinks function differently when the www prefix is used?



all my site working very very well ,
ShortLinks work correctly on my own website with the www prefix and without the www prefix !!!.


but if my site will be working with with the www prefix and without the www search engines will account as duplicate content !!!! , that what I mean it .



look here my site

http://www.mysite.com/download.html

and you to same link without
http:/trytop.com/download.html

you will go to http://www.mysite.com/modules.php?name=downloads

I hope now you understand me and hope if you help me fix it !!!! .

Thanks,
  

Last edited by skyfly on Fri Dec 24, 2010 3:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
skyfly
I might as well work here
I might as well work here


Joined: Dec 22, 2010
Posts: 50

Reputation: 3.7Reputation: 3.7Reputation: 3.7

PostPosted: Fri Dec 24, 2010 12:39 pm 
Post subject:
Reply with quote

Hi ,

look here in softpedia is a good example


in that link

http://www.softpedia.com/get/Internet/Servers/Server-Tools/Data-Mining-Managed-Plug-in-Algorithm-API.shtml




try to login to same link with out www you will to redirect to right address but in nuke you will redirect to /modules.php?name=????

http://softpedia.com/get/Internet/Servers/Server-Tools/Data-Mining-Managed-Plug-in-Algorithm-API.shtml


I try so much as I can tell , I am sorry becuse my English is weak !!! .

Thanks,
  
Back to top
View user's profile Send private message
skyfly
I might as well work here
I might as well work here


Joined: Dec 22, 2010
Posts: 50

Reputation: 3.7Reputation: 3.7Reputation: 3.7

PostPosted: Fri Dec 24, 2010 1:03 pm 
Post subject:
Reply with quote

so when I redirectlink from non-wwwURLs to www
I got link like here in your site

http://rn.trickedoutnews.com/modules.php?name=Video_Stream


Please I hope now you understand !!! .
Thanks,
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Fri Dec 24, 2010 1:52 pm 
Post subject:
Reply with quote

I understand. You want the search engines to only index the www.yoursite.com and not duplicate yoursite.com. I will look into this but it will take me a couple of days. I have family over for Christmas and will be busy.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message
skyfly
I might as well work here
I might as well work here


Joined: Dec 22, 2010
Posts: 50

Reputation: 3.7Reputation: 3.7Reputation: 3.7

PostPosted: Fri Dec 24, 2010 3:15 pm 
Post subject:
Reply with quote

Yes now you got my point very well !! , and also not reapt link many time and it show only one link !! .

- marry Christmas to you and your famiily from Finland !!! .

Thanks,
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 600
Location: North Carolina
Reputation: 543Reputation: 543Reputation: 543
votes: 4

PostPosted: Fri Dec 24, 2010 3:44 pm 
Post subject:
Reply with quote

Thank you. And you too.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> NukeC All times are GMT - 5 Hours
 Goto page 1, 2, 3, 4  Next
 Page 1 of 4

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©