Krydos Posted January 13, 2018 Share Posted January 13, 2018 Try this to pass the url to index.php: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{REQUEST_URI} !index\.php RewriteCond %{HTTP_HOST} ^(.+?)\.masaeng\.ga$ RewriteRule ^.*/?$ /index.php?u=%1&a=$1 [L] Then in index.php you should be able to get the url like this $query = $_SERVER['QUERY_STRING']; Quote Link to comment Share on other sites More sharing options...
Mhari Posted January 14, 2018 Author Share Posted January 14, 2018 Its looks like nothing changed with the url.. I mean is not how to get the url but how to keep the url from being ignoredthe url like main.masaeng.ga mean => /index.php?u=main If i write main.masaeng.ga/whatever/here/a.php?b=c it still read the url as /index.php?u=main So its just can read the front one Sorry if my words is less clear Any solutions please.. Quote Link to comment Share on other sites More sharing options...
Krydos Posted January 14, 2018 Share Posted January 14, 2018 You have to use .htaccess to pass the original full url to php before rewriting it to index.php?u=main and losing it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.