Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fancy URLs not working
#10
I had the same problem, and I found the solution in the help page that comes with the "gs blog" plugin.

In the section that allows you to select fancy urls for blogs, there's a very useful popup called " View What Your Sites .htaccess Should Be!".

Here's what it gave for mine:


Code:
AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
<Files sitemap.xml>
    Order allow,deny
    Allow from all
    Satisfy All
</Files>

RewriteEngine on

# Usually RewriteBase is just '/', but
# replace it with your subdirectory path -- IMPORTANT -> if your site is located in subfolder you need to change this to reflect (eg: /subfolder/)
RewriteBase /

RewriteRule ^blog/post/([^/.]+)/?$ index.php?id=blog&post=$1 [L]
RewriteRule ^blog/tag/([^/.]+)/?$ index.php?id=blog&tag=$1 [L]
RewriteRule ^blog/page/([^/.]+)/?$ index.php?id=blog&page=$1 [L]
RewriteRule ^blog/archive/([^/.]+)/?$ index.php?id=blog&archive=$1 [L]
RewriteRule ^blog/category/([^/.]+)/?$ index.php?id=blog&category=$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

I'm sure you don't need all of it if you don't have gs blog plugin. I deactivated the plugin just to check if the fancy urls still work and they did.
Reply


Messages In This Thread
Fancy URLs not working - by apatheticresistance - 2011-11-23, 18:01:38
Fancy URLs not working - by Connie - 2011-11-23, 18:06:54
Fancy URLs not working - by apatheticresistance - 2011-11-23, 18:26:26
Fancy URLs not working - by ccagle8 - 2011-11-24, 01:08:14
Fancy URLs not working - by BungaBungaTime! - 2011-12-13, 12:16:20
Fancy URLs not working - by chakvak - 2011-12-14, 13:29:53
Fancy URLs not working - by Noesis_Mik - 2011-12-15, 12:56:19
Fancy URLs not working - by chiara - 2012-04-06, 23:03:00
Fancy URLs not working - by alvares - 2012-06-26, 22:37:46
Fancy URLs not working - by andyhasit - 2012-10-03, 02:58:24



Users browsing this thread: 1 Guest(s)