Magento 2 admin page redirecting to homepageMagento2 Login Link Redirecting to HomepageMagento 2 Admin Url Redirecting to Homepage with index.phpsite is redirecting to old urlHow to fix Magento 2 2.0.0-RC Admin page not found after installationMagento 2 The page isn’t redirecting properly in custom moduleMagento admin login and admin panel are extremely slowIssue with setting up SSL on magentohomepage only loading header and footer?Redirecting to homepage after add to cartHow can i redirect to homepage after loginRemove Duplicate admin URL in Magento 2Magento2 Login Link Redirecting to Homepage

Is there a good program to play chess online in ubuntu?

Why does the Trade Federation become so alarmed upon learning the ambassadors are Jedi Knights?

Why aren't globular clusters disk shaped

Sending a photo of my bank account card to the future employer

Source of story about the Vilna Gaon and immigration policy

Problem with interpolating function returned by NDEigensystem

What is the superlative of ipse?

Do First Order blasters maintain a record of when they were fired?

Can a British citizen travel with a Nigerian passport?

Why isn't aluminium involved in biological processes?

What is this called? A tube flange bearing threaded for threaded pushrod

Why limit to revolvers?

What to look for in climbing shoes?

Can both line and load go to same screw on a GFCI outlet?

Why do so many algebra PhD students drop out or leave academia, compared to applied mathematics PhDs?

Manually select/unselect lines before forwarding to stdout

Too many spies!

How could an animal "smell" carbon monoxide?

When to ask for constructive criticism?

Was Willow's first magic display (blazing arrow through arm) actual magic, and if not, what's the trick?

What's the meaning of こそ in this sentence?

Can't update Ubuntu 18.04.2

What are "full piece" and "half piece" in chess?

Why hasn't the U.S. government paid war reparations to any country it attacked?



Magento 2 admin page redirecting to homepage


Magento2 Login Link Redirecting to HomepageMagento 2 Admin Url Redirecting to Homepage with index.phpsite is redirecting to old urlHow to fix Magento 2 2.0.0-RC Admin page not found after installationMagento 2 The page isn’t redirecting properly in custom moduleMagento admin login and admin panel are extremely slowIssue with setting up SSL on magentohomepage only loading header and footer?Redirecting to homepage after add to cartHow can i redirect to homepage after loginRemove Duplicate admin URL in Magento 2Magento2 Login Link Redirecting to Homepage






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















My admin URL redirecting to homepage, I have did lot of efforts to fix admin login link but still it migrating to homepage,



my website link https://www.muzikhausberlin.de/index.php
my admin link https://www.muzikhausberlin.de/admin










share|improve this question
























  • delete the contents of the following directories => var/cache and /var/session

    – Savan Patel
    2 days ago











  • For sure check also do you use correct admin url by typing: php bin/magento info:adminuri

    – BartZalas
    2 days ago












  • there is no session folder inside var.. cache cleared

    – Aadii Mughal
    2 days ago











  • snag.gy/1Jhxcm.jpg

    – Aadii Mughal
    2 days ago











  • Have You Tried Changing in core_config_data Table?

    – Mohit Rane
    2 days ago

















2















My admin URL redirecting to homepage, I have did lot of efforts to fix admin login link but still it migrating to homepage,



my website link https://www.muzikhausberlin.de/index.php
my admin link https://www.muzikhausberlin.de/admin










share|improve this question
























  • delete the contents of the following directories => var/cache and /var/session

    – Savan Patel
    2 days ago











  • For sure check also do you use correct admin url by typing: php bin/magento info:adminuri

    – BartZalas
    2 days ago












  • there is no session folder inside var.. cache cleared

    – Aadii Mughal
    2 days ago











  • snag.gy/1Jhxcm.jpg

    – Aadii Mughal
    2 days ago











  • Have You Tried Changing in core_config_data Table?

    – Mohit Rane
    2 days ago













2












2








2








My admin URL redirecting to homepage, I have did lot of efforts to fix admin login link but still it migrating to homepage,



my website link https://www.muzikhausberlin.de/index.php
my admin link https://www.muzikhausberlin.de/admin










share|improve this question
















My admin URL redirecting to homepage, I have did lot of efforts to fix admin login link but still it migrating to homepage,



my website link https://www.muzikhausberlin.de/index.php
my admin link https://www.muzikhausberlin.de/admin







magento2 admin-panel home-page






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









BartZalas

9595 silver badges13 bronze badges




9595 silver badges13 bronze badges










asked 2 days ago









Aadii MughalAadii Mughal

1327 bronze badges




1327 bronze badges












  • delete the contents of the following directories => var/cache and /var/session

    – Savan Patel
    2 days ago











  • For sure check also do you use correct admin url by typing: php bin/magento info:adminuri

    – BartZalas
    2 days ago












  • there is no session folder inside var.. cache cleared

    – Aadii Mughal
    2 days ago











  • snag.gy/1Jhxcm.jpg

    – Aadii Mughal
    2 days ago











  • Have You Tried Changing in core_config_data Table?

    – Mohit Rane
    2 days ago

















  • delete the contents of the following directories => var/cache and /var/session

    – Savan Patel
    2 days ago











  • For sure check also do you use correct admin url by typing: php bin/magento info:adminuri

    – BartZalas
    2 days ago












  • there is no session folder inside var.. cache cleared

    – Aadii Mughal
    2 days ago











  • snag.gy/1Jhxcm.jpg

    – Aadii Mughal
    2 days ago











  • Have You Tried Changing in core_config_data Table?

    – Mohit Rane
    2 days ago
















delete the contents of the following directories => var/cache and /var/session

– Savan Patel
2 days ago





delete the contents of the following directories => var/cache and /var/session

– Savan Patel
2 days ago













For sure check also do you use correct admin url by typing: php bin/magento info:adminuri

– BartZalas
2 days ago






For sure check also do you use correct admin url by typing: php bin/magento info:adminuri

– BartZalas
2 days ago














there is no session folder inside var.. cache cleared

– Aadii Mughal
2 days ago





there is no session folder inside var.. cache cleared

– Aadii Mughal
2 days ago













snag.gy/1Jhxcm.jpg

– Aadii Mughal
2 days ago





snag.gy/1Jhxcm.jpg

– Aadii Mughal
2 days ago













Have You Tried Changing in core_config_data Table?

– Mohit Rane
2 days ago





Have You Tried Changing in core_config_data Table?

– Mohit Rane
2 days ago










2 Answers
2






active

oldest

votes


















1














after hard hurdle i got it fixed. i replace htaccess file with this code and working perfect



 ############################################
## uncomment the line below to enable developer mode

# SetEnv MAGE_MODE developer

############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi

# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php

############################################
## GoDaddy specific options

# Options -MultiViews

## you might also need to add this line to php.ini
## cgi.fix_pathinfo = 1
## if it still doesn't work, rename php.ini to php5.ini

############################################
## this line is specific for 1and1 hosting

#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php

############################################
## default index file

DirectoryIndex index.php

<IfModule mod_php5.c>

############################################
## adjust memory limit

php_value memory_limit 768M
php_value max_execution_time 18000

############################################
## disable automatic session start
## before autoload was initialized

php_flag session.auto_start off

############################################
## enable resulting html compression

#php_flag zlib.output_compression on

###########################################
## disable user agent verification to not break multiple image upload

php_flag suhosin.session.cryptua off

</IfModule>

<IfModule mod_security.c>
###########################################
## disable POST processing to not break multiple image upload

SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

<IfModule mod_deflate.c>

############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip

# Insert filter on all content
###SetOutputFilter DEFLATE
# Insert filter on selected content types only
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript

# Netscape 4.x has some problems...
#BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
#BrowserMatch ^Mozilla/4.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
#BrowserMatch bMSIE !no-gzip !gzip-only-text/html

# Don't compress images
#SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don't deliver the wrong content
#Header append Vary User-Agent env=!dont-vary

</IfModule>

<IfModule mod_ssl.c>

############################################
## make HTTPS env vars available for CGI mode

SSLOptions StdEnvVars

</IfModule>

<IfModule mod_rewrite.c>

############################################
## enable rewrites

Options +FollowSymLinks
RewriteEngine on

############################################
## you can put here your magento root folder
## path relative to web root

#RewriteBase /magento/

############################################
## workaround for HTTP authorization
## in CGI environment

RewriteRule .* - [E=HTTP_AUTHORIZATION:%HTTP:Authorization]

############################################
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks

RewriteCond %REQUEST_METHOD ^TRAC[EK]
RewriteRule .* - [L,R=405]

############################################
## redirect for mobile user agents

#RewriteCond %REQUEST_URI !^/mobiledirectoryhere/.*$
#RewriteCond %HTTP_USER_AGENT "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
#RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

############################################
## never rewrite for existing files, directories and links

RewriteCond %REQUEST_FILENAME !-f
RewriteCond %REQUEST_FILENAME !-d
RewriteCond %REQUEST_FILENAME !-l

############################################
## rewrite everything else to index.php

RewriteRule .* index.php [L]

</IfModule>


############################################
## Prevent character encoding issues from server overrides
## If you still have problems, use the second line instead

AddDefaultCharset Off
#AddDefaultCharset UTF-8

<IfModule mod_expires.c>

############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires

ExpiresDefault "access plus 1 year"
ExpiresByType text/html A0
ExpiresByType text/plain A0

</IfModule>

###########################################
## Deny access to root files to hide sensitive application information
RedirectMatch 404 /.git

<Files composer.json>
order allow,deny
deny from all
</Files>
<Files composer.lock>
order allow,deny
deny from all
</Files>
<Files .gitignore>
order allow,deny
deny from all
</Files>
<Files .htaccess>
order allow,deny
deny from all
</Files>
<Files .htaccess.sample>
order allow,deny
deny from all
</Files>
<Files .php_cs>
order allow,deny
deny from all
</Files>
<Files .travis.yml>
order allow,deny
deny from all
</Files>
<Files CHANGELOG.md>
order allow,deny
deny from all
</Files>
<Files CONTRIBUTING.md>
order allow,deny
deny from all
</Files>
<Files CONTRIBUTOR_LICENSE_AGREEMENT.html>
order allow,deny
deny from all
</Files>
<Files COPYING.txt>
order allow,deny
deny from all
</Files>
<Files Gruntfile.js>
order allow,deny
deny from all
</Files>
<Files LICENSE.txt>
order allow,deny
deny from all
</Files>
<Files LICENSE_AFL.txt>
order allow,deny
deny from all
</Files>
<Files nginx.conf.sample>
order allow,deny
deny from all
</Files>
<Files package.json>
order allow,deny
deny from all
</Files>
<Files php.ini.sample>
order allow,deny
deny from all
</Files>
<Files README.md>
order allow,deny
deny from all
</Files>

################################
## If running in cluster environment, uncomment this
## http://developer.yahoo.com/performance/rules.html#etags

#FileETag none





share|improve this answer






























    -1















    You can Change in env.php file




    'backend' => [
    'frontName' => 'admin'
    ]


    Hope it helps.






    share|improve this answer























    • already did.. but not working

      – Aadii Mughal
      2 days ago











    • did you try after cache:flush ?

      – Mohit Rane
      2 days ago













    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281977%2fmagento-2-admin-page-redirecting-to-homepage%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    after hard hurdle i got it fixed. i replace htaccess file with this code and working perfect



     ############################################
    ## uncomment the line below to enable developer mode

    # SetEnv MAGE_MODE developer

    ############################################
    ## uncomment these lines for CGI mode
    ## make sure to specify the correct cgi php binary file name
    ## it might be /cgi-bin/php-cgi

    # Action php5-cgi /cgi-bin/php5-cgi
    # AddHandler php5-cgi .php

    ############################################
    ## GoDaddy specific options

    # Options -MultiViews

    ## you might also need to add this line to php.ini
    ## cgi.fix_pathinfo = 1
    ## if it still doesn't work, rename php.ini to php5.ini

    ############################################
    ## this line is specific for 1and1 hosting

    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php

    ############################################
    ## default index file

    DirectoryIndex index.php

    <IfModule mod_php5.c>

    ############################################
    ## adjust memory limit

    php_value memory_limit 768M
    php_value max_execution_time 18000

    ############################################
    ## disable automatic session start
    ## before autoload was initialized

    php_flag session.auto_start off

    ############################################
    ## enable resulting html compression

    #php_flag zlib.output_compression on

    ###########################################
    ## disable user agent verification to not break multiple image upload

    php_flag suhosin.session.cryptua off

    </IfModule>

    <IfModule mod_security.c>
    ###########################################
    ## disable POST processing to not break multiple image upload

    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    <IfModule mod_deflate.c>

    ############################################
    ## enable apache served files compression
    ## http://developer.yahoo.com/performance/rules.html#gzip

    # Insert filter on all content
    ###SetOutputFilter DEFLATE
    # Insert filter on selected content types only
    #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript

    # Netscape 4.x has some problems...
    #BrowserMatch ^Mozilla/4 gzip-only-text/html

    # Netscape 4.06-4.08 have some more problems
    #BrowserMatch ^Mozilla/4.0[678] no-gzip

    # MSIE masquerades as Netscape, but it is fine
    #BrowserMatch bMSIE !no-gzip !gzip-only-text/html

    # Don't compress images
    #SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

    # Make sure proxies don't deliver the wrong content
    #Header append Vary User-Agent env=!dont-vary

    </IfModule>

    <IfModule mod_ssl.c>

    ############################################
    ## make HTTPS env vars available for CGI mode

    SSLOptions StdEnvVars

    </IfModule>

    <IfModule mod_rewrite.c>

    ############################################
    ## enable rewrites

    Options +FollowSymLinks
    RewriteEngine on

    ############################################
    ## you can put here your magento root folder
    ## path relative to web root

    #RewriteBase /magento/

    ############################################
    ## workaround for HTTP authorization
    ## in CGI environment

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%HTTP:Authorization]

    ############################################
    ## TRACE and TRACK HTTP methods disabled to prevent XSS attacks

    RewriteCond %REQUEST_METHOD ^TRAC[EK]
    RewriteRule .* - [L,R=405]

    ############################################
    ## redirect for mobile user agents

    #RewriteCond %REQUEST_URI !^/mobiledirectoryhere/.*$
    #RewriteCond %HTTP_USER_AGENT "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
    #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

    ############################################
    ## never rewrite for existing files, directories and links

    RewriteCond %REQUEST_FILENAME !-f
    RewriteCond %REQUEST_FILENAME !-d
    RewriteCond %REQUEST_FILENAME !-l

    ############################################
    ## rewrite everything else to index.php

    RewriteRule .* index.php [L]

    </IfModule>


    ############################################
    ## Prevent character encoding issues from server overrides
    ## If you still have problems, use the second line instead

    AddDefaultCharset Off
    #AddDefaultCharset UTF-8

    <IfModule mod_expires.c>

    ############################################
    ## Add default Expires header
    ## http://developer.yahoo.com/performance/rules.html#expires

    ExpiresDefault "access plus 1 year"
    ExpiresByType text/html A0
    ExpiresByType text/plain A0

    </IfModule>

    ###########################################
    ## Deny access to root files to hide sensitive application information
    RedirectMatch 404 /.git

    <Files composer.json>
    order allow,deny
    deny from all
    </Files>
    <Files composer.lock>
    order allow,deny
    deny from all
    </Files>
    <Files .gitignore>
    order allow,deny
    deny from all
    </Files>
    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>
    <Files .htaccess.sample>
    order allow,deny
    deny from all
    </Files>
    <Files .php_cs>
    order allow,deny
    deny from all
    </Files>
    <Files .travis.yml>
    order allow,deny
    deny from all
    </Files>
    <Files CHANGELOG.md>
    order allow,deny
    deny from all
    </Files>
    <Files CONTRIBUTING.md>
    order allow,deny
    deny from all
    </Files>
    <Files CONTRIBUTOR_LICENSE_AGREEMENT.html>
    order allow,deny
    deny from all
    </Files>
    <Files COPYING.txt>
    order allow,deny
    deny from all
    </Files>
    <Files Gruntfile.js>
    order allow,deny
    deny from all
    </Files>
    <Files LICENSE.txt>
    order allow,deny
    deny from all
    </Files>
    <Files LICENSE_AFL.txt>
    order allow,deny
    deny from all
    </Files>
    <Files nginx.conf.sample>
    order allow,deny
    deny from all
    </Files>
    <Files package.json>
    order allow,deny
    deny from all
    </Files>
    <Files php.ini.sample>
    order allow,deny
    deny from all
    </Files>
    <Files README.md>
    order allow,deny
    deny from all
    </Files>

    ################################
    ## If running in cluster environment, uncomment this
    ## http://developer.yahoo.com/performance/rules.html#etags

    #FileETag none





    share|improve this answer



























      1














      after hard hurdle i got it fixed. i replace htaccess file with this code and working perfect



       ############################################
      ## uncomment the line below to enable developer mode

      # SetEnv MAGE_MODE developer

      ############################################
      ## uncomment these lines for CGI mode
      ## make sure to specify the correct cgi php binary file name
      ## it might be /cgi-bin/php-cgi

      # Action php5-cgi /cgi-bin/php5-cgi
      # AddHandler php5-cgi .php

      ############################################
      ## GoDaddy specific options

      # Options -MultiViews

      ## you might also need to add this line to php.ini
      ## cgi.fix_pathinfo = 1
      ## if it still doesn't work, rename php.ini to php5.ini

      ############################################
      ## this line is specific for 1and1 hosting

      #AddType x-mapp-php5 .php
      #AddHandler x-mapp-php5 .php

      ############################################
      ## default index file

      DirectoryIndex index.php

      <IfModule mod_php5.c>

      ############################################
      ## adjust memory limit

      php_value memory_limit 768M
      php_value max_execution_time 18000

      ############################################
      ## disable automatic session start
      ## before autoload was initialized

      php_flag session.auto_start off

      ############################################
      ## enable resulting html compression

      #php_flag zlib.output_compression on

      ###########################################
      ## disable user agent verification to not break multiple image upload

      php_flag suhosin.session.cryptua off

      </IfModule>

      <IfModule mod_security.c>
      ###########################################
      ## disable POST processing to not break multiple image upload

      SecFilterEngine Off
      SecFilterScanPOST Off
      </IfModule>

      <IfModule mod_deflate.c>

      ############################################
      ## enable apache served files compression
      ## http://developer.yahoo.com/performance/rules.html#gzip

      # Insert filter on all content
      ###SetOutputFilter DEFLATE
      # Insert filter on selected content types only
      #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript

      # Netscape 4.x has some problems...
      #BrowserMatch ^Mozilla/4 gzip-only-text/html

      # Netscape 4.06-4.08 have some more problems
      #BrowserMatch ^Mozilla/4.0[678] no-gzip

      # MSIE masquerades as Netscape, but it is fine
      #BrowserMatch bMSIE !no-gzip !gzip-only-text/html

      # Don't compress images
      #SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

      # Make sure proxies don't deliver the wrong content
      #Header append Vary User-Agent env=!dont-vary

      </IfModule>

      <IfModule mod_ssl.c>

      ############################################
      ## make HTTPS env vars available for CGI mode

      SSLOptions StdEnvVars

      </IfModule>

      <IfModule mod_rewrite.c>

      ############################################
      ## enable rewrites

      Options +FollowSymLinks
      RewriteEngine on

      ############################################
      ## you can put here your magento root folder
      ## path relative to web root

      #RewriteBase /magento/

      ############################################
      ## workaround for HTTP authorization
      ## in CGI environment

      RewriteRule .* - [E=HTTP_AUTHORIZATION:%HTTP:Authorization]

      ############################################
      ## TRACE and TRACK HTTP methods disabled to prevent XSS attacks

      RewriteCond %REQUEST_METHOD ^TRAC[EK]
      RewriteRule .* - [L,R=405]

      ############################################
      ## redirect for mobile user agents

      #RewriteCond %REQUEST_URI !^/mobiledirectoryhere/.*$
      #RewriteCond %HTTP_USER_AGENT "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
      #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

      ############################################
      ## never rewrite for existing files, directories and links

      RewriteCond %REQUEST_FILENAME !-f
      RewriteCond %REQUEST_FILENAME !-d
      RewriteCond %REQUEST_FILENAME !-l

      ############################################
      ## rewrite everything else to index.php

      RewriteRule .* index.php [L]

      </IfModule>


      ############################################
      ## Prevent character encoding issues from server overrides
      ## If you still have problems, use the second line instead

      AddDefaultCharset Off
      #AddDefaultCharset UTF-8

      <IfModule mod_expires.c>

      ############################################
      ## Add default Expires header
      ## http://developer.yahoo.com/performance/rules.html#expires

      ExpiresDefault "access plus 1 year"
      ExpiresByType text/html A0
      ExpiresByType text/plain A0

      </IfModule>

      ###########################################
      ## Deny access to root files to hide sensitive application information
      RedirectMatch 404 /.git

      <Files composer.json>
      order allow,deny
      deny from all
      </Files>
      <Files composer.lock>
      order allow,deny
      deny from all
      </Files>
      <Files .gitignore>
      order allow,deny
      deny from all
      </Files>
      <Files .htaccess>
      order allow,deny
      deny from all
      </Files>
      <Files .htaccess.sample>
      order allow,deny
      deny from all
      </Files>
      <Files .php_cs>
      order allow,deny
      deny from all
      </Files>
      <Files .travis.yml>
      order allow,deny
      deny from all
      </Files>
      <Files CHANGELOG.md>
      order allow,deny
      deny from all
      </Files>
      <Files CONTRIBUTING.md>
      order allow,deny
      deny from all
      </Files>
      <Files CONTRIBUTOR_LICENSE_AGREEMENT.html>
      order allow,deny
      deny from all
      </Files>
      <Files COPYING.txt>
      order allow,deny
      deny from all
      </Files>
      <Files Gruntfile.js>
      order allow,deny
      deny from all
      </Files>
      <Files LICENSE.txt>
      order allow,deny
      deny from all
      </Files>
      <Files LICENSE_AFL.txt>
      order allow,deny
      deny from all
      </Files>
      <Files nginx.conf.sample>
      order allow,deny
      deny from all
      </Files>
      <Files package.json>
      order allow,deny
      deny from all
      </Files>
      <Files php.ini.sample>
      order allow,deny
      deny from all
      </Files>
      <Files README.md>
      order allow,deny
      deny from all
      </Files>

      ################################
      ## If running in cluster environment, uncomment this
      ## http://developer.yahoo.com/performance/rules.html#etags

      #FileETag none





      share|improve this answer

























        1












        1








        1







        after hard hurdle i got it fixed. i replace htaccess file with this code and working perfect



         ############################################
        ## uncomment the line below to enable developer mode

        # SetEnv MAGE_MODE developer

        ############################################
        ## uncomment these lines for CGI mode
        ## make sure to specify the correct cgi php binary file name
        ## it might be /cgi-bin/php-cgi

        # Action php5-cgi /cgi-bin/php5-cgi
        # AddHandler php5-cgi .php

        ############################################
        ## GoDaddy specific options

        # Options -MultiViews

        ## you might also need to add this line to php.ini
        ## cgi.fix_pathinfo = 1
        ## if it still doesn't work, rename php.ini to php5.ini

        ############################################
        ## this line is specific for 1and1 hosting

        #AddType x-mapp-php5 .php
        #AddHandler x-mapp-php5 .php

        ############################################
        ## default index file

        DirectoryIndex index.php

        <IfModule mod_php5.c>

        ############################################
        ## adjust memory limit

        php_value memory_limit 768M
        php_value max_execution_time 18000

        ############################################
        ## disable automatic session start
        ## before autoload was initialized

        php_flag session.auto_start off

        ############################################
        ## enable resulting html compression

        #php_flag zlib.output_compression on

        ###########################################
        ## disable user agent verification to not break multiple image upload

        php_flag suhosin.session.cryptua off

        </IfModule>

        <IfModule mod_security.c>
        ###########################################
        ## disable POST processing to not break multiple image upload

        SecFilterEngine Off
        SecFilterScanPOST Off
        </IfModule>

        <IfModule mod_deflate.c>

        ############################################
        ## enable apache served files compression
        ## http://developer.yahoo.com/performance/rules.html#gzip

        # Insert filter on all content
        ###SetOutputFilter DEFLATE
        # Insert filter on selected content types only
        #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript

        # Netscape 4.x has some problems...
        #BrowserMatch ^Mozilla/4 gzip-only-text/html

        # Netscape 4.06-4.08 have some more problems
        #BrowserMatch ^Mozilla/4.0[678] no-gzip

        # MSIE masquerades as Netscape, but it is fine
        #BrowserMatch bMSIE !no-gzip !gzip-only-text/html

        # Don't compress images
        #SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

        # Make sure proxies don't deliver the wrong content
        #Header append Vary User-Agent env=!dont-vary

        </IfModule>

        <IfModule mod_ssl.c>

        ############################################
        ## make HTTPS env vars available for CGI mode

        SSLOptions StdEnvVars

        </IfModule>

        <IfModule mod_rewrite.c>

        ############################################
        ## enable rewrites

        Options +FollowSymLinks
        RewriteEngine on

        ############################################
        ## you can put here your magento root folder
        ## path relative to web root

        #RewriteBase /magento/

        ############################################
        ## workaround for HTTP authorization
        ## in CGI environment

        RewriteRule .* - [E=HTTP_AUTHORIZATION:%HTTP:Authorization]

        ############################################
        ## TRACE and TRACK HTTP methods disabled to prevent XSS attacks

        RewriteCond %REQUEST_METHOD ^TRAC[EK]
        RewriteRule .* - [L,R=405]

        ############################################
        ## redirect for mobile user agents

        #RewriteCond %REQUEST_URI !^/mobiledirectoryhere/.*$
        #RewriteCond %HTTP_USER_AGENT "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
        #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

        ############################################
        ## never rewrite for existing files, directories and links

        RewriteCond %REQUEST_FILENAME !-f
        RewriteCond %REQUEST_FILENAME !-d
        RewriteCond %REQUEST_FILENAME !-l

        ############################################
        ## rewrite everything else to index.php

        RewriteRule .* index.php [L]

        </IfModule>


        ############################################
        ## Prevent character encoding issues from server overrides
        ## If you still have problems, use the second line instead

        AddDefaultCharset Off
        #AddDefaultCharset UTF-8

        <IfModule mod_expires.c>

        ############################################
        ## Add default Expires header
        ## http://developer.yahoo.com/performance/rules.html#expires

        ExpiresDefault "access plus 1 year"
        ExpiresByType text/html A0
        ExpiresByType text/plain A0

        </IfModule>

        ###########################################
        ## Deny access to root files to hide sensitive application information
        RedirectMatch 404 /.git

        <Files composer.json>
        order allow,deny
        deny from all
        </Files>
        <Files composer.lock>
        order allow,deny
        deny from all
        </Files>
        <Files .gitignore>
        order allow,deny
        deny from all
        </Files>
        <Files .htaccess>
        order allow,deny
        deny from all
        </Files>
        <Files .htaccess.sample>
        order allow,deny
        deny from all
        </Files>
        <Files .php_cs>
        order allow,deny
        deny from all
        </Files>
        <Files .travis.yml>
        order allow,deny
        deny from all
        </Files>
        <Files CHANGELOG.md>
        order allow,deny
        deny from all
        </Files>
        <Files CONTRIBUTING.md>
        order allow,deny
        deny from all
        </Files>
        <Files CONTRIBUTOR_LICENSE_AGREEMENT.html>
        order allow,deny
        deny from all
        </Files>
        <Files COPYING.txt>
        order allow,deny
        deny from all
        </Files>
        <Files Gruntfile.js>
        order allow,deny
        deny from all
        </Files>
        <Files LICENSE.txt>
        order allow,deny
        deny from all
        </Files>
        <Files LICENSE_AFL.txt>
        order allow,deny
        deny from all
        </Files>
        <Files nginx.conf.sample>
        order allow,deny
        deny from all
        </Files>
        <Files package.json>
        order allow,deny
        deny from all
        </Files>
        <Files php.ini.sample>
        order allow,deny
        deny from all
        </Files>
        <Files README.md>
        order allow,deny
        deny from all
        </Files>

        ################################
        ## If running in cluster environment, uncomment this
        ## http://developer.yahoo.com/performance/rules.html#etags

        #FileETag none





        share|improve this answer













        after hard hurdle i got it fixed. i replace htaccess file with this code and working perfect



         ############################################
        ## uncomment the line below to enable developer mode

        # SetEnv MAGE_MODE developer

        ############################################
        ## uncomment these lines for CGI mode
        ## make sure to specify the correct cgi php binary file name
        ## it might be /cgi-bin/php-cgi

        # Action php5-cgi /cgi-bin/php5-cgi
        # AddHandler php5-cgi .php

        ############################################
        ## GoDaddy specific options

        # Options -MultiViews

        ## you might also need to add this line to php.ini
        ## cgi.fix_pathinfo = 1
        ## if it still doesn't work, rename php.ini to php5.ini

        ############################################
        ## this line is specific for 1and1 hosting

        #AddType x-mapp-php5 .php
        #AddHandler x-mapp-php5 .php

        ############################################
        ## default index file

        DirectoryIndex index.php

        <IfModule mod_php5.c>

        ############################################
        ## adjust memory limit

        php_value memory_limit 768M
        php_value max_execution_time 18000

        ############################################
        ## disable automatic session start
        ## before autoload was initialized

        php_flag session.auto_start off

        ############################################
        ## enable resulting html compression

        #php_flag zlib.output_compression on

        ###########################################
        ## disable user agent verification to not break multiple image upload

        php_flag suhosin.session.cryptua off

        </IfModule>

        <IfModule mod_security.c>
        ###########################################
        ## disable POST processing to not break multiple image upload

        SecFilterEngine Off
        SecFilterScanPOST Off
        </IfModule>

        <IfModule mod_deflate.c>

        ############################################
        ## enable apache served files compression
        ## http://developer.yahoo.com/performance/rules.html#gzip

        # Insert filter on all content
        ###SetOutputFilter DEFLATE
        # Insert filter on selected content types only
        #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript

        # Netscape 4.x has some problems...
        #BrowserMatch ^Mozilla/4 gzip-only-text/html

        # Netscape 4.06-4.08 have some more problems
        #BrowserMatch ^Mozilla/4.0[678] no-gzip

        # MSIE masquerades as Netscape, but it is fine
        #BrowserMatch bMSIE !no-gzip !gzip-only-text/html

        # Don't compress images
        #SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

        # Make sure proxies don't deliver the wrong content
        #Header append Vary User-Agent env=!dont-vary

        </IfModule>

        <IfModule mod_ssl.c>

        ############################################
        ## make HTTPS env vars available for CGI mode

        SSLOptions StdEnvVars

        </IfModule>

        <IfModule mod_rewrite.c>

        ############################################
        ## enable rewrites

        Options +FollowSymLinks
        RewriteEngine on

        ############################################
        ## you can put here your magento root folder
        ## path relative to web root

        #RewriteBase /magento/

        ############################################
        ## workaround for HTTP authorization
        ## in CGI environment

        RewriteRule .* - [E=HTTP_AUTHORIZATION:%HTTP:Authorization]

        ############################################
        ## TRACE and TRACK HTTP methods disabled to prevent XSS attacks

        RewriteCond %REQUEST_METHOD ^TRAC[EK]
        RewriteRule .* - [L,R=405]

        ############################################
        ## redirect for mobile user agents

        #RewriteCond %REQUEST_URI !^/mobiledirectoryhere/.*$
        #RewriteCond %HTTP_USER_AGENT "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
        #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]

        ############################################
        ## never rewrite for existing files, directories and links

        RewriteCond %REQUEST_FILENAME !-f
        RewriteCond %REQUEST_FILENAME !-d
        RewriteCond %REQUEST_FILENAME !-l

        ############################################
        ## rewrite everything else to index.php

        RewriteRule .* index.php [L]

        </IfModule>


        ############################################
        ## Prevent character encoding issues from server overrides
        ## If you still have problems, use the second line instead

        AddDefaultCharset Off
        #AddDefaultCharset UTF-8

        <IfModule mod_expires.c>

        ############################################
        ## Add default Expires header
        ## http://developer.yahoo.com/performance/rules.html#expires

        ExpiresDefault "access plus 1 year"
        ExpiresByType text/html A0
        ExpiresByType text/plain A0

        </IfModule>

        ###########################################
        ## Deny access to root files to hide sensitive application information
        RedirectMatch 404 /.git

        <Files composer.json>
        order allow,deny
        deny from all
        </Files>
        <Files composer.lock>
        order allow,deny
        deny from all
        </Files>
        <Files .gitignore>
        order allow,deny
        deny from all
        </Files>
        <Files .htaccess>
        order allow,deny
        deny from all
        </Files>
        <Files .htaccess.sample>
        order allow,deny
        deny from all
        </Files>
        <Files .php_cs>
        order allow,deny
        deny from all
        </Files>
        <Files .travis.yml>
        order allow,deny
        deny from all
        </Files>
        <Files CHANGELOG.md>
        order allow,deny
        deny from all
        </Files>
        <Files CONTRIBUTING.md>
        order allow,deny
        deny from all
        </Files>
        <Files CONTRIBUTOR_LICENSE_AGREEMENT.html>
        order allow,deny
        deny from all
        </Files>
        <Files COPYING.txt>
        order allow,deny
        deny from all
        </Files>
        <Files Gruntfile.js>
        order allow,deny
        deny from all
        </Files>
        <Files LICENSE.txt>
        order allow,deny
        deny from all
        </Files>
        <Files LICENSE_AFL.txt>
        order allow,deny
        deny from all
        </Files>
        <Files nginx.conf.sample>
        order allow,deny
        deny from all
        </Files>
        <Files package.json>
        order allow,deny
        deny from all
        </Files>
        <Files php.ini.sample>
        order allow,deny
        deny from all
        </Files>
        <Files README.md>
        order allow,deny
        deny from all
        </Files>

        ################################
        ## If running in cluster environment, uncomment this
        ## http://developer.yahoo.com/performance/rules.html#etags

        #FileETag none






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 12 hours ago









        Aadii MughalAadii Mughal

        1327 bronze badges




        1327 bronze badges























            -1















            You can Change in env.php file




            'backend' => [
            'frontName' => 'admin'
            ]


            Hope it helps.






            share|improve this answer























            • already did.. but not working

              – Aadii Mughal
              2 days ago











            • did you try after cache:flush ?

              – Mohit Rane
              2 days ago















            -1















            You can Change in env.php file




            'backend' => [
            'frontName' => 'admin'
            ]


            Hope it helps.






            share|improve this answer























            • already did.. but not working

              – Aadii Mughal
              2 days ago











            • did you try after cache:flush ?

              – Mohit Rane
              2 days ago













            -1












            -1








            -1








            You can Change in env.php file




            'backend' => [
            'frontName' => 'admin'
            ]


            Hope it helps.






            share|improve this answer














            You can Change in env.php file




            'backend' => [
            'frontName' => 'admin'
            ]


            Hope it helps.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 2 days ago









            Mohit RaneMohit Rane

            58614 bronze badges




            58614 bronze badges












            • already did.. but not working

              – Aadii Mughal
              2 days ago











            • did you try after cache:flush ?

              – Mohit Rane
              2 days ago

















            • already did.. but not working

              – Aadii Mughal
              2 days ago











            • did you try after cache:flush ?

              – Mohit Rane
              2 days ago
















            already did.. but not working

            – Aadii Mughal
            2 days ago





            already did.. but not working

            – Aadii Mughal
            2 days ago













            did you try after cache:flush ?

            – Mohit Rane
            2 days ago





            did you try after cache:flush ?

            – Mohit Rane
            2 days ago

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281977%2fmagento-2-admin-page-redirecting-to-homepage%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?