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

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

Can I use HTACCESS to format this URL? – Apache

I would like to know if it is possible to format a URL like https://site1.com/en/article-details.test-article?item=test to https://site1.com/en/article-details/test-article?item=test so basically changing the .test-article to /test-article. Because of how my site works it only recognizes .test-article as a valid selector so reading…

VIEW QUESTION
Back To Top
Search