Results 1 to 4 of 4
Thread: htaccess not rewriting my urls
Dec 17, 2009, 14:25 #1
htaccess not rewriting my urls
I'm attempting to rewrite a URL using the following htaccess directives however nothing happens. Does anyone know what I'm doing wrong?
Options +FollowSymLinks RewriteEngine on RewriteRule -mls-(.*)-pt-(.*)\.php view_search_listing.php?mls=$1&pt=$2
Dec 17, 2009, 15:34 #2
- Join Date
- Aug 2000
- Philadephia, PA
- 1 Post(s)
- 0 Thread(s)
Rewrite rules tell Apache how to handle incoming requests, they don't change any of the links on your site.
Neither will a rewrite rule, without a redirect flag, change the URL seen in the address bar of the browser.
Last edited by Dan Grossman; Dec 17, 2009 at 16:37.Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more
Dec 17, 2009, 17:03 #3
Dan - thank you sir! Makes sense now!
Dec 17, 2009, 22:32 #4
Many novice has confusions regarding apache's url rewriting even i had some confusions earlier. What Apache's url rewriting does is it just implicitly maps the request to our existing files like what Dan Grossman has mentioned.