builders
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks problemCan anyone delete the links please ?Thanks in advance
Forum: Fixing WordPress
In reply to: Permalinks problemHi Roy
I spoke to the host, perhaps it will help others in the future, this is the email I’ve got from them. Personally, I don’t know how to create the file.Unfortunately, mod_rewrite is not available on our hosting packages as this is a module for Apache servers and we run Zeus. We do however, offer an alternative, more powerful rewrite facility on all of our Linux hosting packages.
The Zeus Rewrite functionality works in a similar way but has a slightly different syntax. Simply create a file called ‘rewrite.script’ in your web directory and enter your rewrite rules.
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. do not 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:Forum: Fixing WordPress
In reply to: Permalinks problemWhat could be wrong ?
[No bumping. If it’s that urgent, consider hiring someone.]
Forum: Fixing WordPress
In reply to: Permalinks problemIt doesn’t work, not it just takes me to the blog home page
Forum: Fixing WordPress
In reply to: Permalinks problemok, I ll do that now.
Forum: Fixing WordPress
In reply to: Permalinks problemI want to keep the blog, but when I click on a post title, it takes me to the home page. Thanks
Forum: Fixing WordPress
In reply to: Permalinks problemWordPress address (URL) https://robuild.co.uk/blog
Site address (URL) https://robuild.co.ukForum: Fixing WordPress
In reply to: Permalinks problemBasically , If I don’t use the Default option, the blog disappears and with the Default option, if I click on the Post title, it takes me to the home page.