PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

Archive for the ‘ Mod Rewrite ’ Category

Htaccess Mod Rewrite Practical Essential Important Solutions – Update

I have been experimenting with .htaccess a lot regarding with mod rewriting and URL rewriting and had a lot of difficulty finding the solutions regarding to exact problem I faced. This stuff is such a headache. I am feeling headache right now as I am typing after messing with a lot of .htaccess codes. Here is an update regarding essential stuff which you will find useful if you are trying to change your URLS from index.php to index.html or index.php to index and if after putting RewriteEngine on images are not showing up at pages. Following exercises will answer these tasks in htacces mod rewrite:

1- How to enable RewriteEngine for htaccess and localhost
2- Images are not showing after RewriteEngine on
3- Images in second level directory are not showing after RewriteEngine on
e.g. images/1.jpg is showing but images/icons/2.jpg is not showing up
4- Want to change index.php into index or about.php into about
5- Want to change all pages.php to pages.html for site using htaccess
6- Want to Rewrite yoursite.com/user.php?username=xyz to yoursite.com/xyz
7- Want to Rewriting product.php?id=12 to product/ipod-nano/12.html
8- Want to change product.php?id=5 to porduct-5.html

(more…)

Posted in: Mod Rewrite, htaccess
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Allow htaccess and Mod Rewrite in Wamp

You must enable mod_rewrite before you can use it. If you want to enable it in httpd.conf, then use

Options FollowSymLinks Fileinfo
or
Options SymLinksIfOwnerMatch Fileinfo

If you wish to enable mod_rewrite at the .htaccess level (i.e. only in certain (sub)directories within each vHost and not for all (sub)directories of each vHost), then you must set allowOverride Options (at a minimum) in httpd.conf, and place one of

Options +FollowSymLinks
or
Options +SymLinksIfOwnerMatch

in the .htaccess file(s) to enable mod_rewrite.

(more…)

Tags: , , , ,
Posted in: Mod Rewrite, htaccess
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Redirect WordPress RSS Feeds to Feedburner

Feedburner is a very useful service for adding a visual user and search engine friendly rss with your blog. Every successful blogger uses Feedburner service. Feedburner also provide a way to know your subscribers and emails your subscribers when ever an update is available at your blog without causing any load at your own server. This service is free.

Using .htaccess, we can redirect WordPress RSS Feeds to feedburner. Each time someone will click on a link to http://www.yourblog.com/feed, he’ll be redirected to http://feeds.feedburner.com/yourblog.

Simply edit your .htaccess file which will be located in root directory of your blog by following method and paste the following code in that.

(more…)

Tags: , ,
Posted in: Hacks, Mod Rewrite, WordPress, htaccess
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

    


  Subscribe Via RSS
  Subscribe Via Email