noobbgodlike
Forum Replies Created
-
Forum: Networking WordPress
In reply to: problem after activating subfolderT T
But I already co-pas the code9from the codex) into my .htaccess and it works fine for now ( Hope it won’t become disaster in future …)
Forum: Networking WordPress
In reply to: Google Analytics on multisite subfolderhmm Is this code correct?
<?php /* google analytic for all subfolder site */ /* Plugin Name: GA subfolder Description: analytic tracking code Author: noobbgodlike Version: 1.0 Author URI: www.guide4gamers.com */ function GA_SUBFOLDER () { ?> /* TRUE or NOT^^^^^. */ <p><em>This blog is provided by <a href="<?php get_settings ('www.guide4gamers.com'); ?>"><?php get_settings('guide4gamers'); ? ></a>.</em></p> /* site url is main site,isn't it ?? what about sitename?, is it case sensitive or anything? */ <?php } /* We opened up our php again. we have to tell WPMU something important. */ add_action('wp_footer', GA_SUBFOLDER'); /* Now, Where I put my google analytics code?? Thank you Andrea */ ?>
I don’t have 2500 subfolder maybe only about 3-5. :D. Which tracking code that I need to use?? (Single domain, one domain with subdomain, multiple top level domain??Sorry if this sound stupid, probably the answers is single domain but just wanna to make sure ..T T)
Where do I need to put this code (IN PLUGIN FOLDER??)??How to create thht .php file?? (Am I only need to rename the .txt file into plug-in.php).What I should name the plug in?? Is it must be the same as function name?GA_SUBFOLDER.PHP?? or what?
Forum: Networking WordPress
In reply to: problem after activating subfolderNo I haven’t change it, sorry
my current htaccess now
#Made Multi-Site with Multi-Site Enabler 1.5# RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L]
WHere I should put
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L] # END WordPress
I got the code from https://codex.www.ads-software.com/Create_A_Network#Switching_between_subdomains_and_subfolders
thank you very much
Forum: Networking WordPress
In reply to: how to use redirect /fix previous permalink?wait, I just click second link I wrote
https://guide4gamers.com/blog/golden-sun-dark-dawn-guide
and it automatically redirect to first link. I haven’t edit anything. Could this mean I don’t need to do anything ??
Forum: Networking WordPress
In reply to: how to use redirect /fix previous permalink?one of my permalink:
https://guide4gamers.com/golden-sun-dark-dawn-guide
you say that if I install subfolder then it will become
https://guide4gamers.com/blog/golden-sun-dark-dawn-guideright??then what should I write at .htaccess?
I can always revert back using a backup right (just in case something messed up)?
Forum: Networking WordPress
In reply to: multisite in subfolderone last dumb question (hopefully T T).
just done some google search.
There is someone who suggest to use thinking wordpress plug in, but is it safe??? because the post date seems to be outdated
https://journalxtra.com/2010/07/how-to-force-multi-site-to-use-subdirectories/If I am using your method (rewrite .htaccess), will it be alright because some of my posts contains many in-link (like this one)??
https://guide4gamers.com/golden-sun-dark-dawn-guide
if I use your method will it be alright for the future post ( what I should write when publishing a new post??). I am not using that permalink setting.
I use %postname so my post always look like
https://guide4gamers.com/golden-sun-dark-dawn-guidewhat I should rewrite in htaacces>>
thanksForum: Networking WordPress
In reply to: multisite in subfoldercan I disable permalink change in previous post?? I don’t want to edit 200 ++ permalink.
thank you for quick reply. How could I change subdomain to subfolder ?/ I only see subdomain option in network admin dashboard.