[SOLVED] Htacess redirect path in depth

Issue I want to redirect: https://latestmodapks.com/pt/download-de-dados-gta-4-apk-obb-para-android-e-ios/anythinghere OR https://latestmodapks.com/pt/download-de-dados-gta-4-apk-obb-para-android-e-ios/anythinghere/ to https://latestmodapks.com/pt/download-de-dados-gta-4-apk-obb-para-android-e-ios/download Replace (anythinghere or anythinghere/ with download) After trying a bit, I think this code should work: RewriteRule https://latestmodapks.com/(.*?)/(.*?)/(.*) https://latestmodapks.com/$1/$2/download [R=301,NC,L] But this doesn’t seem to work at all. What am

Continue reading

[SOLVED] htaccess redirect using get parameters and remove same parameters

Issue Please help me need redirect search.html?searchword=value&searchphrase=all to search.html?searchword=value I tried: RewriteCond %{QUERY_STRING} ^searchword=(.*) [NC] RewriteCond %{QUERY_STRING} searchphrase= [NC] RewriteRule ^(.*)$ /search.html\?searchword=%1 [R=301,L] but it do not work. Solution You may use it like this: RewriteCond %{QUERY_STRING} (?:^|&)searchphrase= [NC] RewriteCond

Continue reading