Tag Info

Hot answers tagged

2

You ask: How does that work ? As far as I can read it, it only specifies not to rewrite certain urls (using -), These files are included within the WordPress PHP scripts, so there's no need to access them in the browser, but notice the rewrite flags. Here's some information on the F, L and S flags from the Apache docs: Using the [F] flag causes ...


2

It looks as though what you're asking is to redirect /page/n to the homepage, this can be accomplished with the RedirectMatch directive. So: RedirectMatch 301 ^/page/(.*) http://www.my-site.com/ would redirect all traffic from /page/n to the homepage.


2

You might have edited your .htaccess file in Windows notepad or text editor. If you did use Windows text editor then it must have added some special chars in .htaccess file and that will lead to 500 internal server error. Never edit in Windows text editor. Use notepad++ for editing .htaccess and .htpasswd files.


1

.htaccess is ok but I often like the convenience of using a plugin for this stuff. I like Redirection most, it also supports regular expressions. The regexp ^/page/(.*) will match stuff like page/n and it won't match category/name/page/n. You might want to learn more about regexes if needed.


1

Use Database Search and Replace and replace the IP 192.168.33.21 with the domain name project.dev.



Only top voted, non community-wiki answers of a minimum length are eligible