vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to redirect site.com to www.site.com? (https://vborg.vbsupport.ru/showthread.php?t=255066)

preemz10314 12-11-2010 09:13 PM

if he has cpanel all of that other code is a waste of time for such a minor issue. I swear some of you who help on this board think every one here has the same type of knowledge..no thats not true. It would be beneficial to give the most simple straight forward answer upfront then go from there.

Weetabix 12-11-2010 09:20 PM

Quote:

Originally Posted by preemz10314 (Post 2132572)
all of that other code is a waste of time for such a minor issue.

All of that other code is from VBSEO. I added 2 lines to it.


Quote:

Originally Posted by preemz10314 (Post 2132572)
It would be beneficial to give the most simple straight forward answer upfront then go from there.

The answer I gave is a simple cut and paste...... how much easier can I make it? Anyway, this thread is heading off topic. The OP has a couple of solutions to choose from now, so he can choose which one he's happy with.

Digital Jedi 12-11-2010 09:55 PM

Quote:

Originally Posted by preemz10314 (Post 2132572)
if he has cpanel all of that other code is a waste of time for such a minor issue. I swear some of you who help on this board think every one here has the same type of knowledge..no thats not true. It would be beneficial to give the most simple straight forward answer upfront then go from there.

If you think it was mistake to think everyone has the same kind of knowledge, it was also a mistake to think everyone has cPanel. That's installed by the host, entirely at his/her discretion. And like Weetabix said, it's just two short lines of code to copy/paste. If that's too hard for a vB owner, then doing a template edit will blow their mind.

Bouncer222 12-12-2010 02:45 AM

Well I appreciate everyone hurding over here to help me out.
Yet my question remains un-answered.

Where in the .htaccess should I place it? I'm not sure if just placing it at the end might have an affect on it? Or should it be placed at a certain point?

And yes I also have cpanel but for some reason the redirect wasnt working right.

Anyway, would someone mind answering the question?

--------------- Added [DATE]1292129313[/DATE] at [TIME]1292129313[/TIME] ---------------

Quote:

Originally Posted by Weetabix (Post 2132552)
You only need to use the 'RewriteEngine On' once, and you can stick that extra bit anywhere underneath it. Something like this;

Code:

RewriteEngine On

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

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

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

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]


Didn't notice this from my previous post, but anyway, I added the 2 lines where you showed me, but it didn't work. Nothing happened.

Digital Jedi 12-12-2010 04:06 AM

I have no idea if this will work, I'm merely going on an unsubstantiated hunch:

Code:

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


Bouncer222 12-12-2010 04:40 AM

don't work

K!nG 12-12-2010 08:28 AM

Hey budd m providin u this video tutorial abt redirecting 301... hope that helps you and if still not then sorry mate.

http://www.youtube.com/watch?v=VyEu99qWk3Q

preemz10314 12-12-2010 10:56 AM

Asking most of these ppl for help will never work, they will give you some type of quantum theory answer to solve a simple redirect issue.

Do you have cPanel? Bouncer, like i said, if you have cPanel, just login to your host navigate to redirects and add it there. You have not said if you have cPanel or not...

Weetabix 12-12-2010 11:36 AM

put this immediately after 'RewriteEngine On'

Code:

Options +FollowSymLinks

### Add www.

rewritecond %{http_host} ^fragtoss.com [nc]
rewriterule ^(.*)$ http://www.fragtoss.com/$1 [r=301,nc]


Digital Jedi 12-12-2010 03:13 PM

Quote:

Originally Posted by preemz10314 (Post 2132795)
Asking most of these ppl for help will never work, they will give you some type of quantum theory answer to solve a simple redirect issue.

Do you have cPanel? Bouncer, like i said, if you have cPanel, just login to your host navigate to redirects and add it there. You have not said if you have cPanel or not...

Yes he did. He said it wasn't working right there, either. I guess those two sentences, like the two lines of code offered, were also a little too quantum-y.

We're trying to help someone root out a problem by giving him steps to try and eliminate as possible solutions. You're just mocking the people trying to help him, repeating a suggestion that if you had even bothered to fully read his posts you would already know doesn't work and cluttering up the thread with unhelpful information.

Everyone here offers their help free of charge and at the expense of their own free time. If you have something new to add, the it will be appreciated and taken in good faith. But if all you're going to do is conflate the simplest, most bone-headedly easy of steps into something ridiculously harder then it is, then I can only assume your just here to troll, not help.


All times are GMT. The time now is 05:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01156 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete