i've had page running wordpress. content in folder, when open page, see folder name in url: example.com/new/gallery
is possible hide "new/" url?
i've got 2 .htaccess file, 1 in root:
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^$ new/ [l] rewriterule (.*) new/$1 [l] </ifmodule>
and 1 in "new" folder:
<ifmodule mod_rewrite.c> rewriteengine on # ebben az alkonyvtarban vagyunk, ezt # figyelembe kell venni az atirasoknal #rewritebase /cegunkwebhelye # minden nemletezo oldal webcimet iranyitsuk @ az index.php-re rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?q=$1 [qsa] </ifmodule> directoryindex index.php index.html index.htm # begin wordpress # end wordpress
pls, me! thanks!
take of word press database , logging admin panel.
1) go settings >> general
remove /new/
site address (url) :
2)copy index.php , .htaccess 'new' folder , paste outside of new folder.
3)edit index.php from
require( dirname( __file__ ) . '/wp-blog-header.php' );
to
require( dirname( __file__ ) . '/new/wp-blog-header.php' );
and check example.com 'your primary domain'. load website without 'new' url.
Comments
Post a Comment