The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Blog Redirect help please
Hi guys,
Im having a bit of trouble getting my blog setup for my CMS. everything has been going ok with it, but I decided I wanted to change the directory from www.vivapotenza.com/blog.php to blog.vivapotenza.com. on my server, my vbulletin files are installed on a directory called "httpdocs", and the blog files are installed on the root of this (but not in a folder, so directly on the root). As i say, i had it running the standard way and it all worked ok. I added the following code to my .htaccess file, which is also on the root: Code:
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^blogs/.* blog.php [QSA] RewriteRule ^entries/.* entry.php [QSA] Code:
<?xml version="1.0" encoding="UTF-8"?> <cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd"> <allow-access-from domain="*.vivapotenza.com"/> <site-control permitted-cross-domain-policies="master-only"/> <allow-http-request-headers-from domain="*.vivapotenza.com" headers="*" secure="true"/> </cross-domain-policy> Code:
$<?php //If you installed the blog directly as a subdirectory of //vbulletin (www.example.com/blog) then you don't need to change this //file. Otherwise comment out the first line, uncomment the second line, //and change the value to be the actual path to the vbulletin installation on //server. vb_dir = realpath(dirname(__FILE__) . '/..'); // $vb_dir = "/path/to/vbulletin/"; ?> Thanks in advance. |
#2
|
|||
|
|||
anyone?
|
#3
|
|||
|
|||
You have your main URL like this blog.vivapotenza.com/blog.php could be your problem
|
Благодарность от: | ||
vivapotenza |
#4
|
|||
|
|||
thanks for the response.
How would I correct that so it actually takes me to blog.vivapotenza.com instead? (which is how I want it) |
#5
|
|||
|
|||
Blog is the folder name in your FTP that you need to store your files if you don't have them in this folder already you need to download all files to your desktop make a folder called blog in the FTP them upload all files to it then change the url in options if you can't login to admincp upload the tools.php file
|
#6
|
|||
|
|||
yeah i can login to acp, thanks, ill give it a bash buddy
--------------- Added [DATE]1369047543[/DATE] at [TIME]1369047543[/TIME] --------------- so I now have a folder on my server called "blog", and have put all the files from my do_not_upload folder from my VB4.2.1 install into it (so all the blog files are in there). I tried redirecting the blog to open at www.vivapotenza.com/blog/blog.php instead of just www.vivapotenza.com/blog.php which worked fine. I still cant figure out how to do what I want though, which is to have the blog open up at blog.vivapotenza.com? (when i put this url into the ACP it tries to open the blog at blog.vivapotenza.com/blog.php for some reason? Should the crossdomain.xml, and the .htaccess be uploaded to the vbulletin root, or into the blog folder? Ive tried it both ways now and neither has worked, but I assume some/all of my code (above) is incorrect? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|