Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help
Author Message
MrHandsome
New Member
New Member



Joined: Feb 06, 2019
Posts: 8

PostPosted: Mon Mar 25, 2019 8:47 am Reply with quote

Hey.

How that I go to address here [ Only registered users can see links on this board! Get registered or login! ]
to there [ Only registered users can see links on this board! Get registered or login! ]
?

I am trying to make [ Only registered users can see links on this board! Get registered or login! ] Avoid phpNuke_old, but no. I am unfortunately having to make [ Only registered users can see links on this board! Get registered or login! ]


Information:

Folders:
/domains/blabla.com/public_html/phpNuke_old (admin, themes, config.php, index.php, mainfile.php, etc)
/domains/blabla.com/public_html/phpNewer/wp-content/themes/twentynineteen

.htaccess
/domains/blabla.com/public_html/phpNuke_old/.htaccess AND the /domains/blabla.com/public_html/.htaccess
Code:
RewriteEngine On

RewriteCond %{QUERY_STRING} phpNuke_old
RewriteRule phpNuke_old / [R=301,L]

or
Code:
RewriteEngine On

RewriteRule  "/phpNuke_old/" "^/$"  [R]



But that doesn't work.
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1526

PostPosted: Tue Mar 26, 2019 3:29 pm Reply with quote

The RewriteRule will not solve your real problem because you are running after that in much more issues, because as the name it says: it's only a rewrite-rule but you are not changing the file system, which your php-files are using it. Wink

_________________
Github: RavenNuke 
View user's profile Send private message
MrHandsome







PostPosted: Thu Mar 28, 2019 12:50 pm Reply with quote

Ok, I unfortunately have to do [ Only registered users can see links on this board! Get registered or login! ] (or [ Only registered users can see links on this board! Get registered or login! ] etc)
 
MrHandsome







PostPosted: Wed Apr 24, 2019 4:55 pm Reply with quote

A little late, but solution:

Code:


<?php
$protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ||
$_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
$domainName = $_SERVER['HTTP_HOST'];
$protocol = $protocol.$domainName;
$send=$protocol."/m".$_SERVER['REQUEST_URI'];
header("Location: $send");


in modules.php

Now [ Only registered users can see links on this board! Get registered or login! ]
automatic to [ Only registered users can see links on this board! Get registered or login! ]
 
neralex







PostPosted: Wed Apr 24, 2019 10:48 pm Reply with quote

When you moved only your installation from the root folder into a subdir, then this isn't need it. You can change simply the nukeurl field in the nuke_config database-table. Your solution affects only the modules but not the rest, so I would recommend to change the nukeurl in the database instead of this.
 
MrHandsome







PostPosted: Thu Apr 25, 2019 12:58 pm Reply with quote

neralex wrote:
When you moved only your installation from the root folder into a subdir, then this isn't need it. You can change simply the nukeurl filed in the nuke_config database-table. Your solution affects only the modules but not the rest, so I would recommend to change the nukeurl in the database instead of this.

Ok, now I have

/domains/blabla.com/public_html/modules.php //<?php $protocol = ... header("Location: $send");
change to
/domains/blabla.com/public_html/modules.php_ //changing back before

/domains/blabla.com/public_html/blabla_phpBB2 //all old files


Table: nuke_config,
nukeurl = [ Only registered users can see links on this board! Get registered or login! ]
change to
nukeurl = [ Only registered users can see links on this board! Get registered or login! ]

Why is not working with [ Only registered users can see links on this board! Get registered or login! ]


Last edited by MrHandsome on Thu Apr 25, 2019 1:00 pm; edited 1 time in total 
neralex







PostPosted: Thu Apr 25, 2019 1:13 pm Reply with quote

Sorry but you have to describe clearer, what you made and what do you want. You don't need to add code-changes in modules.php...
 
MrHandsome







PostPosted: Fri Apr 26, 2019 5:03 am Reply with quote

See the picture:

Image

Code:


UPDATE nuke_config SET nukeurl = 'http://www.blabla.com/blabla_phpBB2'



I can't unfortunately see [ Only registered users can see links on this board! Get registered or login! ]
Image

I see the same again [ Only registered users can see links on this board! Get registered or login! ]
 
neralex







PostPosted: Fri Apr 26, 2019 10:37 am Reply with quote

1. Set back your nukeurl to:

sql Code:
UPDATE nuke_config SET nukeurl = 'http://www.blabla.com'


2. Delete the file: modules.php_ in your root-folder!

3. Add this to the .htaccess-file in your root-folder:

apache Code:
RewriteEngine on


RewriteCond %{HTTP_HOST} ^(www.)?blabla.com$

RewriteCond %{REQUEST_URI} !^/blabla_phpBB2/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /blabla_phpBB2/$1

RewriteCond %{HTTP_HOST} ^(www.)?blabla.com$
RewriteRule ^(/)?$ blabla_phpBB2/index.php [L]


Viel Erfolg! Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Installation Help

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©