hi guys,
i want to use URL writing now, cause the other weird characters give a bad impression to the search engines and feeds.
can you tell me what is the code to be written in .htaccess.. is it the same we do in regular expression.. my URL is like
http://domain.com/view.php?action=read&id=8
My .htacccess has already few lines, may be my cpanel write it when i was managing index or the wordpress blog did it when i used the customized URL in it..
.htaccess look something like this ..
Expand|Select|Wrap|Line Numbers
- RewriteEngine on
- <Limit GET POST>
- order deny,allow
- deny from all
- allow from all
- </Limit>
- <Limit PUT DELETE>
- order deny,allow
- deny from all
- </Limit>
- Options All
- AuthName domain.com
- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
- RewriteCond %{HTTP_REFERER} !^http://blog.domain2/.*$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://blog.domain2$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://www.blog.domain2/.*$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://www.blog.domain2$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://www.realin.domain.com/.*$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://www.realin.domain.com$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://www.domain.com$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://domain2/.*$ [NC]
- RewriteCond %{HTTP_REFERER} !^http://domain2$ [NC]
- RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]