I need to use the urlencode()
function which will make urls contain '%' sign.
My current rewrite does not allow these characters so i need to update it and what ive tried crashes the whole server.
Sample URL/A tag: <a href="/edit-portfolio/MQ%3D%3D">Test Link</a>
Old .htaccess
(Working great untill i needed urlencode()
)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+)$ index.php?page=$1&c=$2 [NC,L]
New .htaccess
(Crashes site)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9a-zA-Z_-%]+)/([0-9a-zA-Z_-%]+)$ index.php?page=$1&c=$ [NC,L]