Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rewrite URLs problem
#1
This config problem has plagued me through a number of sites built with GS. The example I present here is typical and is trimmed down to barest needed to repro. The site is:

http://salsburg.us (why does GS say it prefers the TLD over the sub "www"?

Rewrite seems to be "trying" to work until You click on the post title of one of the two entries whereupon you receive "Oops! Page not found!"

GS-Blog is the only plugin. (same occurs with Innovation, and other themes). I think the condition exists because of something I have done or failed to do and it persists through all my efforts. I got the same results with the Tide blog product, so I am not blaming it on either of these.

The original.htaccess has been replaced by the contents offered when GS-Blog option for Pretty URLs is selected.
Reply
#2
please post your .htaccess-file, we are not soothsayers here ;=)
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
As in the original message, the exact contents from GS-Blog setup.
=========================================

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 /?([A-Za-z0-9_-]+)\.html$ index.php?id=$1 [QSA,L]
RewriteRule ^post/([^/.]+)/?$ index.php?id=index&post=$1 [L]
RewriteRule ^tag/([^/.]+)/?$ index.php?id=index&tag=$1 [L]
RewriteRule ^page/([^/.]+)/?$ index.php?id=index&page=$1 [L]
RewriteRule ^archive/([^/.]+)/?$ index.php?id=index&archive=$1 [L]
RewriteRule ^category/([^/.]+)/?$ index.php?id=index&category=$1 [L]

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

RewriteRule /?([A-Za-z0-9_-]+)\.html$ index.php?id=$1 [QSA,L]

Is your site actually in a subdomain, www is not a subdomain typically, it should just be a dns entry to the same place as tld, nobody uses www anymore.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
It was an attempt to use a custom permalink to work using .html as on:

http://get-simple.info/wiki/permalinks

Removed and there was no change.
Reply
#6
ok so first off this is an issue with gsblog plugin not getsimple, to clarify things.

look at the fancy urls instructions again in the latest version.
If you are using a subpage then that has to be in your rewrite urls.

RewriteRule ^SUBPAGE/post/([^/.]+)/?$ index.php?id=index&post=$1 [L]

which in your case is "blog"

The plugin gives you the code to use.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
For clarity:

Is the supplied .htaccess code incorrect or is the plugin itself the problem?
Reply
#8
Never mind. Moving on.
Reply




Users browsing this thread: 1 Guest(s)