Here is a post about doing it: Editing .htaccess with Php - Dev Shed
Showing posts with label HTACCESS. Show all posts
Showing posts with label HTACCESS. Show all posts
Wednesday, March 11, 2009
Editing .htaccess with PHP
Although this isn't necessarily recommended, sometimes it is needed. Basically, we'd use PHP to edit our htaccess document to set permissions or redirects or whatever else.
Thursday, November 6, 2008
Monday, October 13, 2008
SEO: mod_rewrite and dynamic pages
Search engines don't really like urls that look like http://mysite.com/page.php?id=1&type=23. Parameters in the URL throw off some search engines and others refuse to index such pages. To get around this, and still keep your dynamic information, you can do with the mod_rewrite approach with Apache.
This solution is only for the Apache web server. If you're using another server, such as Windows, you'll need to figure something else out.
The following link details how to use mod_rewrite to have urls that look like http://mysite.com/pages/mypage/mysubpage function like the url at the top. http://www.workingwith.me.uk/articles/scripting/mod_rewrite
Subscribe to:
Posts (Atom)