skip to Main Content

Mod Rewrite stop at rule? – Apache

I have the following mod rewrite in my .htaccess and when I go to /commPortal.php it still ends up routing me to index2.php. RewriteRule ^commportal/(.+)$ commPortal.php?data=$1 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index2.php [QSA,L] RewriteCond %{REQUEST_URI} .php…

VIEW QUESTION

php dynamic parameters to url with htaccess – SEO

I'm trying to make SEO Friendly url by altering php parameters with slash based url. I want to make mysite.com/TopList.php?tl=ToplistName&fr=2021-02-10&to=2021-02-20 into: mysite.com/ToplistName/2021-02-20/2021-02-20 I had success with rewriting url but none of my includes are referring to right directory path and…

VIEW QUESTION

redirect loop with mod_rewrite – Apache

I'm trying to add a language prefix to my pages through mod_rewrite eg: https://example.com/ > https://example.com/en/ and internally it need to translate to `https://example.com/?language=en I've managed to do it for the base url, but when I try to do it…

VIEW QUESTION

Mask URL rewrite in htaccess – Apache

I have a wordpress website in project and I want to mask the URL of all the pages so that when accessing them: https://myweb.com/survey/page1 https://myweb.com/survey/page2 .... is displayed as: https://myweb.com/survey/portal I have this on .htaccess but it doesn't work: RewriteEngine…

VIEW QUESTION

htacess RewriteRule http://domain/folder/(any searchstring) to redirect to http://domain/folder/index.php?option=$1 – Apache

I am trying to create a rewrite rule in my Apache .htaccess file and the goal is: http://domain/folder/(any search string) to redirect to http://domain/folder/index.php?option=$1 example: http://domain/folder/covid to redirect to http://domain/folder/index.php?option=covid I got this setup in htacess in http://domain/folder, but somehow…

VIEW QUESTION

Htaccess rewrite with parameter value – Apache

I'm looking for some help. I wanted to redirect the following paramters to another url, how can I make this possible? I have googled alot of other solutions but I fail to make this one work. https://(www).website.com/reservation#!/confirm?code=a1XapXsCmlaC0 to https://new-website.com/test/page#!/confirm?code=a1XapXsCmlaC0 Attempted…

VIEW QUESTION

htaccess: how to stop it after first match – CPanel

this is my htaccess file : <IfModule mod_rewrite.c> # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteRule ^getlastversion(.*)$ /lastversion.php$1 [R=301,NC,L,QSA] # this is temporary and should be removed RewriteRule ^(.*)$ http://example.com?$1 [R=301,NC,L,QSA] </IfModule> browsing mysite.com/getlastversion redirect to example.com?lastversion.php(second rule),whereas i…

VIEW QUESTION
Back To Top
Search