Nginx下隐藏入口index.php的两种方法

一.Rewrite方法
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
二.Try_files方法
try_files $uri $uri/ /index.php$uri;
这两种方法都可以,大家任选一种即可,希望对大家有用.
一.Rewrite方法
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
二.Try_files方法
try_files $uri $uri/ /index.php$uri;
这两种方法都可以,大家任选一种即可,希望对大家有用.
亲测有效,希望对大家有用.
Thanks very nice blog!
Magnificent beat ! I would like to apprentice at the same
time as you amend your web site, how can i subscribe for a weblog site?
The account aided me a applicable deal. I had
been tiny bit familiar of this your broadcast offered brilliant transparent concept
Woah! I’m really loving the template/theme of this site.
It’s simple, yet effective. A lot of times it’s hard to get
that “perfect balance” between user friendliness and visual appeal.
I must say that you’ve done a very good
job with this. Also, the blog loads super fast for me on Chrome.
Excellent Blog!
Howdy! Someone in my Facebook group shared this site with us so I came to look it
over. I’m definitely enjoying the information. I’m book-marking and will be tweeting this to my followers!
Exceptional blog and outstanding style and design.
Post writing is also a excitement, if you be familiar with afterward you can write or else it is complicated to write.
Good post. I learn something totally new and challenging on sites I stumbleupon every day.
It will always be interesting to read articles from other authors and use a little something from other websites.
Because the admin of this web site is working,
no question very shortly it will be renowned, due to its feature contents.
Hi there, I discovered your blog by the use
of Google at the same time as searching for a related subject, your
website came up, it seems good. I’ve bookmarked it in my google bookmarks.
Hello there, just turned into alert to your blog through Google,
and located that it is really informative. I am gonna watch out for brussels.
I will appreciate should you continue this in future. A
lot of people can be benefited out of your writing. Cheers!
Hi there, just became alert to your blog through Google,
and found that it is truly informative. I am gonna watch out for brussels.
I’ll be grateful if you continue this in future.
Lots of people will be benefited from your writing.
Cheers!
Wow that was odd. I just wrote an incredibly long
comment but after I clicked submit my comment didn’t show up.
Grrrr… well I’m not writing all that over again. Regardless, just wanted to say
great blog!
Excellent blog here! Also your site loads up fast! What host are you using?
Can I get your affiliate link to your host? I wish my web site loaded up as fast as yours lol
I was wondering if you ever thought of changing the page layout of
your blog? Its very well written; I love what youve got
to say. But maybe you could a little more in the way of content so people could connect with it better.
Youve got an awful lot of text for only having 1 or two images.
Maybe you could space it out better?
Good post! Ꮤe are linking to this partіcularly
great article ߋn օur site. Keep up the good writing.
Also visit mmy blog; KOPL PRO SEO
Discover thousands of the latest and popular films from various
genres. Enjoy high-quality movie streaming experience without
any subscription needed.
Thanks very interesting blog!
My brother suggested I might like this website.
He was entirely right. This post actually made my day. You can not imagine just how much time I
had spent for this info! Thanks!
Generally I don’t learn post on blogs, however I would like to say that this write-up very
pressured me to try and do it! Your writing style
has been amazed me. Thank you, very nice post.
Its like you read my thoughts! You appear to grasp a lot approximately
this, like you wrote the e-book in it or something.
I think that you simply can do with a few p.c. to drive the message house
a little bit, but instead of that, that is excellent blog.
An excellent read. I will definitely be back.
This is very interesting, You’re a very skilled blogger.
I have joined your feed and look forward to seeking more of your magnificent post.
Also, I’ve shared your website in my social networks!
Very good article. I definitely love this website.
Keep it up!
Hello! Do you know if they make any plugins to safeguard
against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any tips?
My blog – Jewel
When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three e-mails with the same comment.
Is there any way you can remove people from that service?
Thank you!
hi!,I like yoour writing veey a lot! percentage we keep
up a correspondence extra approximately your article on AOL?
I require an expert in this house to resolve
my problem. May be thaat is you! Looking ahead to ssee you.
Also visit my web page: en iyi kulak içi işitme cihazı hangisi
There is certainly a lot to find out about this subject.
I really like all the points you’ve made.
It is perfect time to make some plans for the future
and it is time to be happy. I have learn this submit
and if I may I want to recommend you few fascinating things or suggestions.
Maybe you could write next articles regarding this article.
I want to read more things approximately it!
Hi, I believe your blog could be having browser compatibility issues.
When I look at your blog in Safari, it looks fine but when opening in Internet
Explorer, it’s got some overlapping issues. I merely wanted to provide you with a quick
heads up! Besides that, great website!
My partner and I stumbled over here coming from a different website and thought I may as well check
things out. I like what I see soo now i am following you.
Look forward to exploring your web pasge for a second time.
Here iss my site – Labioplasti
What’s up, all is going sound here and ofcourse every one is sharing data,
that’s in fact excellent, keep up writing.
Way cool! Some very valid points! I appreciate you writing this post plus the rest of the site is also really
good.
This post is actually a fastidious one it assists new web viewers, who are wishing for blogging.
Hi there! This is my first visit to your blog! We are a collection of volunteers
and starting a new initiative in a community in the same
niche. Your blog provided us beneficial information to
work on. You have done a marvellous job!
I do not know whether it’s just me or if perhaps everybody else encountering problems with your site.
It appears as though some of the text on your content are running off the screen. Can someone else
please comment and let me know if this is happening to them
too? This may be a issue with my internet browser because
I’ve had this happen previously. Kudos
Wow! Finally I got a web site from where I be capable of truly get
valuable data regarding my study and knowledge.
Hi just wanted to give you a brief heads up and let you know a few of the
images aren’t loading correctly. I’m not sure why but I think its
a linking issue. I’ve tried it in two different browsers and both show the same outcome.
Hi, I do believe your website could be having internet browser compatibility
issues. When I look at your website in Safari, it looks fine but when opening
in Internet Explorer, it has some overlapping issues.
I just wanted to provide you with a quick heads up! Besides that, great website!
Hmm it looks like your site ate my first comment (it
was super long) so I guess I’ll just sum it up what I wrote and say, I’m thoroughly
enjoying your blog. I as well am an aspiring blog blogger but I’m still new to the whole thing.
Do you have any recommendations for novice blog writers?
I’d really appreciate it.
Hi, I do think this is an excellent website. I stumbledupon it
😉 I’m going to return yet again since i have bookmarked it.
Money and freedom is the best way to change,
may you be rich and continue to guide other people.
What’s up to all, because I am in fact keen of reading this blog’s post to be
updated daily. It consists of good data.
Pretty section of content. I just stumbled upon your website and in accession capital to assert that I get actually enjoyed account your blog posts.
Anyway I’ll be subscribing to your augment and even I achievement you access consistently rapidly.
Thank you for the auspicious writeup. It in fact was a amusement
account it. Look advanced to far added agreeable from you!
By the way, how could we communicate?
Ahaa, its good conversation regarding this paragraph here at this webpage, I have read all that, so at this time me also
commenting at this place.
I loved as much as you’ll receive carried out right here. The sketch is tasteful,
your authored subject matter stylish. nonetheless, you command get
got an shakiness over that you wish be delivering the following.
unwell unquestionably come further formerly again since exactly the same nearly a lot often inside case you shield this hike.
A fascinating discussion is definitely worth comment.
I believe that you need to publish more on this topic, it might not be a taboo matter but
usually people do not speak about these subjects. To the
next! Cheers!!
It’s great that you are getting ideas from this
article as well as from our discussion made here.
Aw, this was an exceptionally nice post. Taking a few minutes and actual effort to generate a
superb article… but what can I say… I hesitate a whole lot and never manage to get anything done.
We stumbled over here coming from a different website and thought
I might check things out. I like what I see so now i am following you.
Look forward to going over your web page for a second time.
We absolutely love your blog and find almost all of your post’s to be exactly what I’m looking for.
can you offer guest writers to write content for
yourself? I wouldn’t mind writing a post or elaborating on some of the subjects you write about here.
Again, awesome site!
When someone writes an post he/she keeps the thought of a
user in his/her brain that how a user can know it.
So that’s why this piece of writing is amazing. Thanks!
You’re welcome
52 COMMENTS