I have read other post with similar problems and tried implementing recommendations without success.
Could it be something in the php.ini file?
register_globals = off
allow_url_fopen = off
expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
; Only uncomment zend optimizer lines if your application requires Zend Optimizer support
;[Zend]
;zend_optimizer.optimization_level=15
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so
; -- Be very careful to not to disable a function which might be needed!
; -- Uncomment the following lines to increase the security of your PHP site.
;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru,
; phpinfo, exec, system, dl, fsockopen, set_time_limit,
; popen, proc_open, proc_nice,shell_exec,show_source,symlink"
Maybe it is something in the htaccess file located in the root?
RewriteEngine on
# for GoDaddy
Rewritebase /
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule ^.*$ /index.php? [L]
You mean the /config/main.php url rules ? I have not changed them.
// uncomment the following to enable URLs in path-format
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
I found that code posted by someone in another thread, it worked for some but not for others and it was in response to the Godaddy hosting. I have closed the window, but could probably find it again, if it helps.
As you see there for one user the line I suggested worked for the other the one with the question markā¦
Your problem is definitively related to the htaccess fileā¦ to check this try to remove āurlFormatā => āpathā from the urlManager config and all links should be working but with the ā?r=ā¦ā.
Did you check with godady if url_rewrite is enabled for you?
Did you try the htaccess without the "rewrite base"?
Just to test this from the beginningā¦ I would suggest you to create a complete new webapp with yii - the default oneā¦ and without changing anything to see if all works on your hostingā¦ only after you check that all worksā¦ try to enable the url path in that new app (only then add the htaccess)ā¦ and check again if all worksā¦
I had the permissions set, the problem; it was in the wrong place! It is now in the ROOT.
The db connectionString wasnāt set properly either, but it is working perfectly now!
The links that werenāt working have been configured with the echo CHtml:link instead of hard coded a href. One of the links had the wrong controller association, how it worked on the local is a mistery.
I have checked all of the links and the forms, everything is working properly now!! Even the Admin Login! There isnāt a link for that, it is called directly. He can check and manage the referrals, but until he adds products or accepts payments online then there is no need for a sign up and login for visitors.
This is why I chose Yii, the site is expected to grow and will need more of the capabilities in the future.
Anyway, I will try to make pretty urls but I will need a break first!!