skip to Main Content

.htaccess rewrite cond/rule and hide url paremeters – Apache

I got a htaccess in my Root directory. My files path http://example.com/folder1/folder2/index.php?country=eu&lang=en I made this in htaccess. RewriteCond %{HTTP_HOST} ^(www.)?anothersite.com$ RewriteRule ^([^/]*)/([^/]*)$ /folder1/folder2/index.php?country=$1&lang=$2 [L] RewriteRule ^([^/]*)$ /folder1/folder2/index.php [L] And looks like this http://example.com/index.php?country=eu&lang=en But i want like this -> http://example.com/eu-en…

VIEW QUESTION

Unable to call shell script from apache httpd

I am trying to call shell script from 000-default.conf inside /etc/httpd/sites-available. The 000-default.conf file content is : <VirtualHost *:80> ServerName localhost DocumentRoot /var/www/html/ CustomLog "| sh /scratch/user/test.sh" custom_user_tracking </VirtualHost> My /etc/httpd/conf/httpd.conf has below content added: ServerName localhost LogFormat "%t [%h]…

VIEW QUESTION
Back To Top
Search