skip to Main Content

Long URL in php using htaccess – Apache

I have a very long URL: //domain/administration/registrar/term_detail.php?a_id=47 And I want to make it looks like: //domain/administration/registrar/detail/47 I have created an htaccess file in //domain/administration/registrar/. Below is my code in htaccess and it is not working. Any suggestion of what I…

VIEW QUESTION

How to prevent rewrite .htaccess file conflict problem – Apache

RewriteEngine on RewriteRule ^([^/.]+)/?$ category.php?slug=$1 RewriteRule ^([^/.]+)/([^/.]+)$ product-details.php?slug1=$1&slug=$2 RewriteRule ^([^/.]+)/?$ infrastructure-details.php?slug=$1 what I have already tried This is my htaccess file. problem is when I am trying to execute (infrastructure-details.php?slug=$1) its move to (category.php?slug=$1) conflict with first rule of htaccess.…

VIEW QUESTION

Apache2 mod_rewrite difficulty with GET variables

On the website.conf file I have: <VirtualHost *:80> DocumentRoot /srv/http/website/cgi-bin ServerName website ServerAlias www.website RewriteEngine on RewriteRule ^$ "" RewriteRule ^([a-z]+)$ /?tab=repo ... My goal is to have http://localhost/ redirect to localhost and http://localhost/word redirect to http://localhost/?tab=word. With the current…

VIEW QUESTION
Back To Top
Search