Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fancy URLs not working
#1
Hi, just wanted to report what is either a bug or a problem (or both?)

I just finished developing a website on my local server and migrated it over to the live server. On my laptop, fancy URLs worked fine. But on the live site, they do not work. I waited several hours (as the Wiki suggests) but nothing has magically started to work. When accessing a URL that should work, I simply get a page with this:

Quote:Not Found
The requested URL /events/ was not found on this server.

The .htaccess file looks fine, according what I've read elsewhere in the forums.

Anyway, after a while, I decided maybe the live server is the real culprit. According to GetSimple's "health check" I do have Apache Mod Rewrite "Installed - OK". But following the instructions at
http://www.wallpaperama.com/forums/how-t...d-t40.html it seems that I do not have mod_rewrite on my server. Running phpinfo() also turns up no sign of mod_rewrite.

So I guess this is a bug report. GetSimple thinks Mod Rewrite is installed, but it isn't! Of course, I will let you know if my server admin tells me otherwise.
Reply
#2
please give us more specific info:

which PHP version
which Server? Apache / Windows
which GS version? actual one or beta?

best would be to post the result of the server health check

Cheers Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
Sure thing. The phpinfo results tell me that I'm running PHP 5.2.6, on Linux and Apache. The GS version is 3.0, just downloaded today.

Literally everything on the Health Check says OK except for this: "/data/other/customfields.xml XML Invalid - Error!" i18n Custom Fields is no longer installed, but I did try it out at some point, so I assume this might have something to do with that.

I've contacted the server admin, so they will hopefully confirm or deny that mod_rewrite is active in the near future.
Reply
#4
can you paste in your root .htaccess file? My guess is that the rewrite base is wrong...
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#5
Hi everyone, (sorry for my english ;P)

GetSimple is fuc**** amazing Big Grin
I discovered this CMS two days ago and now i'm try to make my first site to test, but i have problem with fancy URL's.

Please, look to 'polecane(dot)tk'
As You see, You can clik buttons in menu and the URL is change, but content from main site is the same all the time.

PHP version is 5.2.17
Apache 2.2.20
GS version is 3.0
mod_rewrite is ON - I have other sites there and everything is ok


Htaccess in this moment looking like that:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

When i tried to change just rewrite rule for:
Code:
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
is going 404.

In GS admin panel I tried to change permalink structure to
Code:
%parent%/%slug%/
or just
Code:
%slug%/
and it's still doesnt work.

It's just one situation, when everything working right - when my permalink structure is
Code:
?id=%slug%
but I don't want URL's like
Code:
...polecane(dot)tk/?id=to...
I want get URL's like
Code:
example.com/post-name

1. How should looking a right htaccess?
2. How should looking a right permalink structure?

Thanks for all help and sorry for my english againSmile
I hope that everyone understand what I want to say Big Grin
Reply
#6
I am having the same issue. Did you manage to sort this out? If so, how?




ActivitiesFor Seniors
AddictionRecovery
Reply
#7
(sorry for my bad english.. i'm not speak english)

Hi!
I had a same problem.. but i beat the problem.
Fancy URLs now works well in my system.

system environments :

Windows 7
Bitnami WAMP Stack 1.2-5

My solution is changing "httpd.conf (apache2/conf/httpd.conf)".

I change

"AllowOverride None" -> "AllowOverride All"

Here is a part of well working httpd.conf
look at bold text, it's change line.

Quote:#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/BitNami WAMPStack/apache2/htdocs">

Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

I hope it works well!
Reply
#8
Hi all!
I have the same issue too: My funcy URLs are not working (they give me 404 error) but my Mod Revrite is working ( I found it green in "Website Health Check")
I have some problem in understand what do I have to do!

Can you help me please?
Thank you so much!

chiara
Reply
#9
And how do I create a page to redirect to another site (eg "google" == www.google.com)? I put the url in the "Custom URL" and when saved, the url is wwwgooglecom without dots.
Reply
#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




Users browsing this thread: 1 Guest(s)