skip to Main Content

.htaccess URL redirect with parameters – WordPress

I have a link like this: From: http://www.example.com/wp/?p=231 and I need to redirect it to this URL: To: https://www.example.com/jump/ How could this be done? This the .htaccess file: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] # BEGIN WordPress…

VIEW QUESTION

How do I redirect multiple urls to same url – Apache

how do I redirect multiple url to another one url I have tried but its not working RewriteCond %{HTTP_HOST} ^sub.domain.to/q1$ [NC,OR] RewriteCond %{HTTP_HOST} ^sub.domain.to/q2$ [NC,OR] RewriteCond %{HTTP_HOST} ^sub.domain.to/q3$ [NC,OR] RewriteCond %{HTTP_HOST} ^sub.domain.to/q4$ [NC,OR] RewriteCond %{HTTP_HOST} ^sub.domain.to/q5$ [NC] RewriteRule ^(.*)$ https://sub.domain.to/full-q…

VIEW QUESTION

How can I do a 301 redirect of index.html and force HTTPS? – WordPress

I'm moving an old html site to Wordpress. The site structure looked like: http://example.com/index.html http://example.com/about.html http://example.com/contact.html And in WordPress it now looks like: https://example.com/ https://example.com/about/ https://example.com/contact/ This is my .htaccess file RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]…

VIEW QUESTION

Stop WWW for sub-domain with htaccess – Apache

my subdomain.example.com redirecting to www.subdomain.example.com. Htaccess code : # ensure www. RewriteCond %{HTTP_HOST} !^www. [NC] RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # ensure https RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] ### END WWW & HTTPS I am looking…

VIEW QUESTION

RedirectMatch 301 remove query string / URL Parameters – Apache

i need a Solution for the google search console error links and RedirectMatch 301 remove query string / URL Parameters in my htaccess: Google Search Console Links: https://www.domain.de/?main_page=index&zenid=umf5etlrmr4blnuiq0e4jsp6l2&cPath=15_326&sort=20a&alpha_filter_id=68 https://www.domain.de/index.php?main_page=product_reviews_write&products_id=9985&cPath=5_380&number_of_uploads=0 https://www.domain.de/?main_page=index&cPath=46_47&sort=20a&alpha_filter_id=70 https://www.domain.de/?currency=USD&main_page=products_new&disp_order=7&page=141 https://www.domain.de/?main_page=index&zenid=mj6nsb9r53goiu6e13nb80tfq7&cPath=1_160&sort=20a&alpha_filter_id=70 https://www.domain.de/?currency=USD&main_page=index&cPath=3_137 https://www.domain.de/?main_page=index&cPath=46_76&sort=20a&alpha_filter_id=84 https://www.domain.de/?main_page=index&cPath=5_6&sort=20a&alpha_filter_id=85 https://www.domain.de/index.php?main_page=index And many more. I…

VIEW QUESTION
Back To Top
Search