Welcome Guest, Not a member yet? Register   Sign In
How to hide index.php from URL for both www and without www on http/https on Amazone
#3

(04-04-2016, 03:09 PM)InsiteFX Wrote: You can get rid of the www by adding this to your .htaccess file:

Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,NC,L]

See if that will work for you.

I am already extracting www portion from url if some one put www.example.com .htaccess remove it and the url become example.com i am already doing this.

Problem Area:

My problem here is if one visit to mobiles page and put www with domain name e.g www.example.com/mobiles in this case when the user hit enter the page redirect to mobiles page successfully which is not the issue but if you look at the url the url will be showing like www.example.com/index.php/mobiles, if we put just example.com/mobiles then the url seems ok no index.php part in url, it gives issue only with www.


Thank you for your reply.
Reply


Messages In This Thread
RE: How to hide index.php from URL for both www and without www on http/https on Amazone - by MasoodRehman - 04-04-2016, 08:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB