Author |
Message |
MrHandsome
New Member
Joined: Feb 06, 2019
Posts: 8
|
Posted:
Mon Mar 25, 2019 8:47 am |
|
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. |
|
|
|
|
neralex
Site Admin
Joined: Aug 22, 2007
Posts: 1772
|
Posted:
Tue Mar 26, 2019 3:29 pm |
|
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. |
_________________ Github: RavenNuke |
|
|
|
MrHandsome
|
Posted:
Thu Mar 28, 2019 12:50 pm |
|
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
|
Posted:
Wed Apr 24, 2019 4:55 pm |
|
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
|
Posted:
Wed Apr 24, 2019 10:48 pm |
|
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
|
Posted:
Thu Apr 25, 2019 12:58 pm |
|
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
|
Posted:
Thu Apr 25, 2019 1:13 pm |
|
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
|
Posted:
Fri Apr 26, 2019 5:03 am |
|
See the picture:
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! ]
I see the same again [ Only registered users can see links on this board! Get registered or login! ] |
|
|
|
|
neralex
|
Posted:
Fri Apr 26, 2019 10:37 am |
|
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! |
|
|
|
|
|