.htaccess - Redirecting to homepage htaccess issue -
i have strange issue pages redirecting homepage. let me explain - website thedj.com.au
now when type in www.thedj.com.au/payments redirects thedj.com.au (even though should going page https://thedj.com.au/payments).
any idea why , how fix?
my htaccess file below:
# begin https redirection plugin <ifmodule mod_rewrite.c> rewriteengine on rewriterule ^home.htm$ https://thedj.com.au/ [r=301,l] rewriterule ^photos.htm$ http://photos.thedj.com.au/ [r=301,l] rewriterule ^contacts.htm$ https://thedj.com.au/contact-us/ [r=301,l] rewriterule ^booking.htm$ https://thedj.com.au/book-dj/ [r=301,l] rewriterule ^downloads.htm$ https://thedj.com.au/downloads/ [r=301,l] rewriterule ^payonline.htm$ https://thedj.com.au/payments/ [r=301,l] rewriterule ^price.htm$ https://thedj.com.au/pricing/ [r=301,l] rewriterule ^questions.htm$ https://thedj.com.au/faq/ [r=301,l] rewriterule ^links.htm$ https://thedj.com.au/links/ [r=301,l] rewriterule ^thankyous/index.htm$ https://thedj.com.au/testimonials/ [r=301,l] rewritecond %{https} off rewriterule ^(.*)$ https://thedj.com.au/ [l,r=301] </ifmodule> # end https redirection plugin # begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress rewritecond %{http_host} ^mrdj\.net\.au$ [or] rewritecond %{http_host} ^www\.mrdj\.net\.au$ rewriterule ^/?$ "https\:\/\/thedj\.com\.au\/" [r=301,l] rewritecond %{http_host} ^mrdj\.com\.au$ [or] rewritecond %{http_host} ^www\.mrdj\.com\.au$ rewriterule ^/?$ "https\:\/\/thedj\.com\.au\/" [r=301,l] rewritecond %{http_host} ^thedjs\.com\.au$ [or] rewritecond %{http_host} ^www\.thedjs\.com\.au$ rewriterule ^/?$ "https\:\/\/thedj\.com\.au\/" [r=301,l] rewritecond %{http_host} ^theperthweddingdjs\.com$ [or] rewritecond %{http_host} ^www\.theperthweddingdjs\.com$ rewriterule ^/?$ "https\:\/\/thedj\.com\.au\/" [r=301,l] rewritecond %{http_host} ^thedjs\.net\.au$ [or] rewritecond %{http_host} ^www\.thedjs\.net\.au$ rewriterule ^/?$ "https\:\/\/thedj\.com\.au" [r=301,l]
note: i've tried commenting out lines
#rewritecond %{https} off #rewriterule ^(.*)$ https://thedj.com.au/ [l,r=301]
however has not fixed issue. i'm thinking may perhaps because website entirely https:// - more ideas appreciated.
best, kosta
the .htaccess shouldn't redirect here. testing, this website useful.
is configuration live site? because https://thedj.com.au/payments works me. browsers tend cache permanent redirects quite aggressively. need clear complete cache or use private browsing mode test redirect again. (but need close private browsing windows , open new one)
Comments
Post a Comment