back soft

مطالب مرتبط با «htaccess redirect to https» در back soft | نویسنده: استخدام کار

HTACCESS redirect to index.php: PHP level in subfolder fix

Vote count: 0 My current HTACCESS looks like this. # Run everything else but real files through index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.(gif|jpe?g|png|css|js)$ RewriteRule ^(.*)$ index.php?p=$1 [NC,L,QSA] Great piece of code where when I type in what would be a subfolder directory, it redirects as a parameter to index.php. Works great for something http://localhost/blah (which redirects as http://localhost/index.php?p=blah), but not so great for http://localhost/blah/boink. The problem with the latter is that the redirection does work and does redirect to index.php, but for some reason, the page believes that it is at the...

ادامه مطلب

htaccess redirect from old domain to new domain and https and preserve query string

Vote count: 0 can anybody help me with my problem. I changed the domain of my wordpress site, but on same server. Old site: https://www.old.netNew site: https://www.new.com Now i would like to make the following redirects: http:/www.old.net --> https:/www.new.com https:/www.old.net --> https:/www.new.com http:/www.new.com --> https:/www.new.com http:/www.old.net/example-site --> https:/www.new.com/example-site https:/www.old.net/example-site --> https:/www.new.com/example-site http:/old.net --> https:/www.new.com https:/old.net --> https:/www.new.com http:/old.net/example-site --> https:/www.new.com/example-site https:/old.net/example-site --> https:/www.new.com/example-site etc... (I remove...

ادامه مطلب