Search…

X3 Photo Gallery Support Forums

Search…
 
Dennis kaczor
Experienced
Topic Author
Posts: 31
Joined: 10 Dec 2010, 17:35

Mod Rewite Fails

23 Sep 2015, 12:01

Hello all, I'm not good at Mod Rewrites and when I ran the check it says there is an error. Below is the results.
What would I need to do to correct this

Dennis

Fail :(
It seems the below image does not load. Your check/.htaccess file:
RewriteEngine on

# Rewrite any file calls to the image directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !image/
RewriteRule ^(.+)$ image/$1 [L]

# Tests

SetEnv HTTP_MOD_REWRITE "true"



SetEnv HTTP_MOD_DEFLATE "true"



SetEnv HTTP_MOD_MIME "true"



SetEnv HTTP_MOD_SETENVIF "true"



SetEnv HTTP_MOD_HEADERS "true"


RewriteBase /x3/check
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Mod Rewite Fails

24 Sep 2015, 04:26

if mod_rewrite is installed, but not working correctly, in almost all cases it was solved by including the rewritebase rule. This rule is mentioned in the /check/ page by the rewrite test.

Normally you would just set it in .htaccess:
Code
RewriteBase /
As commented in the default .htaccess:
Code
# RewriteBase
# Some hosts require a RewriteBase rule to allow the rewriteEngine to function relative to your domain path. You can normally see if this is the case by going to your /check/ page. If RewriteBase is required, uncomment the line below.
# EXAMPLE 1: if running x3 in domain root, RewriteBase /
# EXAMPLE 2: if running from a root folder named 'x3', RewriteBase /x3
RewriteBase /
 
Dennis kaczor
Experienced
Topic Author
Posts: 31
Joined: 10 Dec 2010, 17:35

Re: Mod Rewite Fails

24 Sep 2015, 12:01

mjau-mjau wrote:if mod_rewrite is installed, but not working correctly, in almost all cases it was solved by including the rewritebase rule. This rule is mentioned in the /check/ page by the rewrite test.

Normally you would just set it in .htaccess:
Code
RewriteBase /
As commented in the default .htaccess:
Code
# RewriteBase
# Some hosts require a RewriteBase rule to allow the rewriteEngine to function relative to your domain path. You can normally see if this is the case by going to your /check/ page. If RewriteBase is required, uncomment the line below.
# EXAMPLE 1: if running x3 in domain root, RewriteBase /
# EXAMPLE 2: if running from a root folder named 'x3', RewriteBase /x3
RewriteBase /
Sorry this just something I don't have a good grasp on yet. Here is what I have changed below and still fails. I added the /x3 in the last line as per Example: 2.

RewriteEngine on

# ######################################################################
# # IMAGEVUE X3
# ######################################################################

# Prevent access to various folders with exceptions
RewriteCond %{REQUEST_FILENAME} !app/parsers/slir [NC]
RewriteRule ^(app|templates|extensions)/ - [NC,F]

# RewriteBase
# Some hosts require a RewriteBase rule to allow the rewriteEngine to function relative to your domain path. You can normally see if this is the case by going to your /check/ page. If RewriteBase is required, uncomment the line below.
# EXAMPLE 1: if running x3 in domain root, RewriteBase /
# EAXAMPLE2: if running from a root folder named 'x3', RewriteBase /x3
RewriteBase /x3

Thanks in advance for the help.

Dennis
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Mod Rewite Fails

24 Sep 2015, 13:18

Are you editing the .htaccess file in the root of your X3 installation, and what is the link?

Most likely, you would set it to:
Code
RewriteBase /
... but as mentioned, this depends on your link.
 
Dennis kaczor
Experienced
Topic Author
Posts: 31
Joined: 10 Dec 2010, 17:35

Re: Mod Rewite Fails

26 Sep 2015, 09:54

mjau-mjau wrote:Are you editing the .htaccess file in the root of your X3 installation, and what is the link?

Most likely, you would set it to:
Code
RewriteBase /
... but as mentioned, this depends on your link.
Hello Karl, sorry as I don't understand what you are asking about a link? Link to site... http:\\www.natures-den.com is the link to the site.
I have tried to follow the instructions and thought I was doing it right, so I'm missing something here. Sorry about the problem, but still trying to learn. I'm liking the X3 more know and getting used to most of the items and a work in progress.

The .htaccess file is in the x3 directory that fails.
Code
/home/torontod/www/www
Code
/home/torontod/www/www/x3/check/index.php
Best regards
Dennis
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Mod Rewite Fails

27 Sep 2015, 02:35

So I'm looking at your X3 website right now, and it's working fine, including mod_rewrite.
http://www.natures-den.com/x3/

Do we have a problem?
 
Dennis kaczor
Experienced
Topic Author
Posts: 31
Joined: 10 Dec 2010, 17:35

Re: Mod Rewite Fails

27 Sep 2015, 13:24

mjau-mjau wrote:So I'm looking at your X3 website right now, and it's working fine, including mod_rewrite.
http://www.natures-den.com/x3/

Do we have a problem?
I guess since you checked the site out Karl and you found that the mod rewrite is working, then I'm OK with it.

Thanks for taking the time to look into this for me.

Dennis