Menu link gives Access Denied. Please help.
Permalink
Hello, when I click on the Home or About links from my home page menu, I get a blank screen saying Access Denied. I am the admin, and have checked the permissions of the site (not that I should need to since admin should have all access). I cleared my Firefox cache and concrete5 cache. c5 version is 5.4.1.1.
In my c5 root directory I have both my default.php and about.php files. The code snippet from my default.php is below.
In my c5 root directory I have both my default.php and about.php files. The code snippet from my default.php is below.
<ul id="menu"> <li class="current"><a href="<?=$this->getThemePath()?>/default.php">Home</a></li> <li><a href="<?=$this->getThemePath()?>/about.php">About</a></li>
Thanks, so I made the changes. It worked to resolve the Access Denied message (yay!), but now when I click on the About link from my homepage it shows a blank page with the message:
"No input file specified"
I have my about.php file in the root dir where my default.php file is. Is this the wrong location for c5 pages?
I even tried to make an about.html page and make it link to that, but I got the same message.
It's as if c5 can't find or see my about.php page. What should I change?
Here is my updated code from default.php:
"No input file specified"
I have my about.php file in the root dir where my default.php file is. Is this the wrong location for c5 pages?
I even tried to make an about.html page and make it link to that, but I got the same message.
It's as if c5 can't find or see my about.php page. What should I change?
Here is my updated code from default.php:
<ul id="menu"> <li class="current"><a href="/">Home</a></li> <li><a href="/about.php">About</a></li>
HI,
It's all about the paths...
Where is concrete placed?
Does your host use sub directories?
Try disabling pretty URL's
In the root you should a load of folders and files:
Somewhere just below the middle you should your 'Themes' folder.
All your stuff should be in there...
Does that help?
It's all about the paths...
Where is concrete placed?
Does your host use sub directories?
Try disabling pretty URL's
In the root you should a load of folders and files:
Somewhere just below the middle you should your 'Themes' folder.
All your stuff should be in there...
Does that help?
Thank you again. Yes that fixed the problem if it links to about.html, but it doesn't work if it links to about.php.
If I put the about.html file inhttp://www.website.com/about.html
instead of atwww.www.website.com/themes/themename/about.html...
then I lose the css.
If I put the file at
http://www.website.com/themes/themename/about.html...
then the page works properly but the URL address is long and ugly.
Can I get rid of the long ugly URL? Do you have any suggestions for this?
Thank you very much
If I put the about.html file inhttp://www.website.com/about.html
instead of atwww.www.website.com/themes/themename/about.html...
then I lose the css.
If I put the file at
http://www.website.com/themes/themename/about.html...
then the page works properly but the URL address is long and ugly.
Can I get rid of the long ugly URL? Do you have any suggestions for this?
Thank you very much
When I am inwww.www.mywebsite.com/about.html... and I click on Home in the menu to take me back to /themes/themename/default.php, I get the "Access Denied" message.
How can I fix this?
Thank you.
How can I fix this?
Thank you.
Check your links, all pages should have the same.
Homepage, nav:
home <a href="/">, about <a href="/about">, contact <a href="/contact">
Aboutpage, nav:
home <a href="/">, about <a href="/about">, contact <a href="/contact">
Contactpage, nav:
home <a href="/">, about <a href="/about">, contact <a href="/contact">
And every page calls a CSS file.
Concrete needs a default.php page which maybe calls the default CSS.
Any other templates, side.php, full.php, left.php can call the same CSS file or a another of your choice.
OK?
Homepage, nav:
home <a href="/">, about <a href="/about">, contact <a href="/contact">
Aboutpage, nav:
home <a href="/">, about <a href="/about">, contact <a href="/contact">
Contactpage, nav:
home <a href="/">, about <a href="/about">, contact <a href="/contact">
And every page calls a CSS file.
Concrete needs a default.php page which maybe calls the default CSS.
Any other templates, side.php, full.php, left.php can call the same CSS file or a another of your choice.
OK?
Whether you are you linking through autonav or 'Insert link to Page' ?
You don't reference <?=$this->getThemePath()?>/
Try:
<a href="/>Home</a>
<a href="/about>About</a>