skip to Main Content

Intermittent RewriteRule – Apache

This is my rewrite rule in .htaccess: RewriteRule ^quiz/([A-Za-z0-9-]+)/([0-9-]+)/?$ quiz/index.php?inv=$1&d=$2 [NC,L] It works perfectly fine for these URLs, which have a mix of cases, with and without hyphens, and all with a date for the final segment: http://localhost/quiz/C-PFM/2021-04-30/ http://localhost/quiz/cpf-o/2021-04-30/ http://localhost/quiz/ipa/2021-04-30/…

VIEW QUESTION

Rewrite url for seo friendly htaccess

I want to rewrite this in SEO friendly url. From - www.example.com/section.php?name=website To - www.example.com/section/website I tried this: RewriteEngine On RewriteRule ([^/.]+)/([^/.]+)?$ section.php?type=$1&service=$2 [NC,L] I am fetching data using GET method in section.php and pass to the another page but…

VIEW QUESTION

.htaccess remove "?page=" – CPanel

I have two questions, both related: Using the example url: https://www.example.com/?page=foo.php How do I use .htaccess to write that out as: https://www.example.com/foo The second part Using the example url: https://www.example.com/?page=directory/bar.php How do I use .htaccess to write that out as:…

VIEW QUESTION

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
Back To Top
Search