Krydos Posted January 13, 2018 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'];
Mhari Posted January 14, 2018 Author 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..
Krydos Posted January 14, 2018 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now