vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Dev Site (https://vborg.vbsupport.ru/showthread.php?t=290760)

Reece^B 11-15-2012 06:13 PM

Dev Site
 
Hi

My host made a backup of my site (db/files) so I can have a test site.
However im having problems with it redirecting to my main site.

They say the issue is:

<script type="text/javascript"><!-- function vba_attach_win(threadid) { openWindow('http://www.pitbikeclub.co.uk/misc.php?do=showattachments&t=' + threadid, 480, 300); } --></script>

...which reverts you to the main site.

You will need to amend this across the site.

Is there a easy way to amend this?

snakes1100 11-15-2012 08:13 PM

Did you change your URL settings in the admincp to match the url for the new dev site?

Reece^B 11-15-2012 08:30 PM

No because I can't access any pages without a redirect to the main site. I did however edit the sites url in the db but it's not made a difference.

snakes1100 11-15-2012 08:34 PM

You can use tools.php & reset the URL, its located in your do_not_upload folder from the vb zip.

Did you verify that you dont have any rewrite rules via a htaccess file?

Reece^B 11-15-2012 09:24 PM

Yes I have a rewrite all non www. for the main site, I checked the .htaccess for the dev site and that has the same code. I removed but for some reason chrome downloads the webpages instead of displaying?

So tried that tools, and the friggin redirect keeps taking me off it!

snakes1100 11-15-2012 09:31 PM

Typically if your prompted to dl a page, then thats an apache issue w/ the add handler.

Edit the .htaccess in the dev folder & disable rewrites

Lynne 11-15-2012 09:34 PM

Since that isn't default vbulletin code, did you try disabling the plugins via the config.php file?

Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

HTML Code:

define('DISABLE_HOOKS', true);

Reece^B 11-15-2012 09:37 PM

I haven't, as I think the problem is with apache. Even the test PHP page won't pharse.
How do I fix this? Im running Plesk, or is it a host only issue? (i've already removed the rewrites)

Many thanks for your help folks.

Lynne 11-15-2012 10:02 PM

If a non-vbulletin page is having the problem, then the problem is a server issue.

snakes1100 11-15-2012 10:51 PM

Reece, did you do what i posted in post #6?


All times are GMT. The time now is 05:54 AM.

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.01103 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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