skip to Main Content

Mod rewrite redirect every subdirectory to the same file – Apache

I have a website with a products.html file. Now, inside this file, I will have some Javascript code that checks the url to show the correct products/categories. This are some examples of the urls: example.com/products example.com/products/ example.com/products/shoes example.com/products/shoes/ example.com/products/shoes/adidas example.com/products/shoes/adidas/…

VIEW QUESTION

htaccess to hide some folders and seo

I have a site with the following folder structure /folder1 /folder2/folder3 /othfolder1 /othfolder2 I would like to obtain this mysite.com -> will show content of /folder1 (without showing the folder on URI, ok for subfolders) mysite.com/folder3 -> will show content…

VIEW QUESTION

Redirect and change URL with Apache/htaccess

I want to change/redirect URIs with http/https in this way: from: http:// or https://xyz.lastdomain.com/b/custom/any-string/456?foo=bar to: https://custom.nextdomain.com/b/any-string/456?foo=bar the custom string should be in the new URL and everything from b so as the end of the URI should be appended. I…

VIEW QUESTION

url rewrite rule for paramters – Apache

I have the following URL: https://www.mydomain.de/termin_cancel=c502b486-e8ad-490a-a615-80307a515fc8 Original url: https://www.mydomain.de/index.php?termin_cancel=c502b486-e8ad-490a-a615-80307a515fc8 rewrite rule: RewriteRule ^termin_cancel=([w-]+)/?$ index.php?termin_cancel=$1 [L,NC,QSA] This works ! But now I have a problem with the next situation: The url should be: https://www.mydomain.de/termin_change=XXX&serviceID=XXX&firstname=XXX&lastname=XXX&email=XXX original url: https://www.mydomain.de/index.php?termin_change=XXX&serviceID=XXX&firstname=XXX&lastname=XXX&email=XXX I don't know which…

VIEW QUESTION
Back To Top
Search