We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40002
    • 9 Posts
    hi

    i have a website with widecard subdomain redirects enabled.
    and manage it with htaccess
    anyone have its own gallery and page.
    so all urls like this : username.mydomain.tld/service/params forexample if i want to access gallery(service) of someone with username of (sajjadi) with parameters(page 2 & categorry nature) , the url most be : http://sajjadi.mydomain.tld/gallery/page_2/cat_nature

    everythings correct and working fine untill upgrading from modx 2.2.0 to 2.2.2
    the problem is the url is redirecting to http://sajjadi.mydomain.tld/gallery.html?params=page_2/cat_nature&owner=sajjadi

    all the services are pages in modx for example gallery service is a page(gallery.html)

    if i change the template to none (problem still present & nothning changed)
    i double checked the htaccess bot no problem was found
    only 3 plogins are present in this modx (captcha - codmirror - tinymce)

    this is the part of my htaccess to handle services anyway:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{HTTP_HOST} !^(shop|www)\.calligraphyhome\.com [NC]
    RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9-_\.]+)\.calligraphyhome\.com [NC]
    RewriteRule ^(gallery|profile|library)(/)?(.*)$ index.php?q=$1.html&param=$3&owner=%1 [L,QSA,NC]


    regards
      • 40002
      • 9 Posts
      any idia for start of resolving this error is grate
      help me please

      for more information. for some resones i changed site_url in config.inc.php
      i changed it to original value and test again

      in this case
      http://sajjadi.mydomain.tld/gallery/page_2/cat_nature is redirecting to
      http://sajjadi.mydomain.tld/gallery.html?param=page_2/cat_nature&owner=sajjadi
      (domain is not changed any more)

      for some other researching i changed request_param_alias to param
      the system show me (custom 404 error) without any redirect

      i changed htaccess to some unavalabel page (othergollery insted of gallery)
      and again cusom 404 shows up without any redirect(again)

      thans