Title: Setting &quot;front page displays posts&quot; problem
Last modified: August 20, 2016

---

# Setting "front page displays posts" problem

 *  [tman76](https://wordpress.org/support/users/tman76/)
 * (@tman76)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/setting-front-page-displays-posts-problem/)
 * Hi,
 * I had my Website set up using a static page as the **front page** (using a rewrite
   script with the below code)…..but when I switched the settings so that my **front
   page** “displays latest posts” the Homapge URL went from [http://www.browzer.net](http://www.browzer.net)
   to [http://www.browzer.net/home](http://www.browzer.net/home). I cant get rid
   of the suffix now.
 * Is there any code I need to add to the script or what should I do?
 * Thanks
    ——————- RULE_0_START: # get the document root map path into SCRATCH:DOCROOT
   from / # initialize our variables set SCRATCH:ORIG_URL = %{URL} set SCRATCH:REQUEST_URI
   = %{URL} # see if theres any queries in our URL match URL into $ with ^(.*)\?(.*)
   $ if matched then set SCRATCH:REQUEST_URI = $1 set SCRATCH:QUERY_STRING = $2 
   endif RULE_0_END: RULE_1_START: # prepare to search for file, rewrite if its 
   not found set SCRATCH:REQUEST_FILENAME = %{SCRATCH:DOCROOT} set SCRATCH:REQUEST_FILENAME.%{
   SCRATCH:REQUEST_URI} # check to see if the file requested is an actual file or#
   a directory with possibly an index.  don’t rewrite if so look for file at %{SCRATCH:
   REQUEST_FILENAME} if not exists then look for dir at %{SCRATCH:REQUEST_FILENAME}
   if not exists then set URL = /index.php?q=%{SCRATCH:REQUEST_URI} goto QSA_RULE_START
   endif endif # if we made it here then its a file or dir and no rewrite goto END
   RULE_1_END: QSA_RULE_START: # append the query string if there was one originally#
   the same as [QSA,L] for apache match SCRATCH:ORIG_URL into % with \?(.*)$ if 
   matched then set URL = %{URL}&%{SCRATCH:QUERY_STRING} endif goto END QSA_RULE_END:

The topic ‘Setting "front page displays posts" problem’ is closed to new replies.

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [rewrite.script](https://wordpress.org/support/topic-tag/rewrite-script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tman76](https://wordpress.org/support/users/tman76/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/setting-front-page-displays-posts-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
