我想从我的网站上删除哈希标记.我通过以下代码实现了它.
$locationProvider.html5Mode(true);
以及索引文件中添加的基本URL.
我的问题是,如果我在重新加载整个页面后处于contct-us状态.我正在重定向到本州,这被定义为其他州.
使用的配置是 -
服务器-Appache数据库 - mysql
我在.htaccess中添加了以下代码,用于重写规则 -
     RewriteEngine On
     php_value post_max_size 120M 
    php_value upload_max_filesize 120M 
     php_value max_execution_time 90 
     RewriteCond %{HTTP_HOST} ^54\.201\.153\.244$ [NC,OR]
     RewriteCond %{HTTPS} off
     RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
      RewriteCond %{HTTP_HOST} ^adkarlo.com$ [NC]
        RewriteRule ^(.*)$ https://www.adkarlo.com/$1 [R=301,L]
      #RewriteBase /html/
      ErrorDocument 404 /404.php
    RewriteCond %{REQUEST_FILENAME} -f
     RewriteRule ^ - [L]
   RewriteRule ^(.*)$ index.php [L]
预期结果 - 从州联系我们重新加载任何我想要访问同一页面的页面.