cool cellphone case Posted June 4, 2011 Share Posted June 4, 2011 how to enable url rewrite on godaddy hosting? i can't visit front and back office now Link to comment Share on other sites More sharing options...
zaddick Posted June 9, 2011 Share Posted June 9, 2011 I use GoDaddy. I enabled mine when I built a Dolphin site. Do you use Linux or Windows Hosting? You pretty much need Linux with GoDaddy to do anything cool. You have to make a php5.ini file and upload it to your root directory. Anything you put in that file will override the default GoDaddy settings. Anything you don't put in that file will keep the default GoDaddy settings for php the same. Here is my php5.ini file, maybe something in here will help you: ; - things I changed -;max_execution_time = 1600;max_input_time = 1600;post_max_size = 20M;upload_max_filesize = 20M;memory_limit = 64M;;extension_dir = "c:\php5\ext" ;; must change ;;;include_path = ".;C:\php5\pear" ;; must change ;;;error_log = syslog;magic_quotes_gpc = Off;output_buffering = 4096;register_argc_argv = Off;;SMTP = relay-hosting.secureserver.net ;; should change ;;;sendmail_from = [email protected] ;; should change ;;;upload_tmp_dir = D:\Temp\php ;; must change? ;;;variables_order = "GPCS";;;;;; THESE ARE THE MAIN IIS ONES ;;;;;;;cgi.force_redirect = 0 ;; MUST change ;;;fastcgi.impersonate = 1 ;; MUST change ;;;;;;;; and enable these modules ;;;;;;;; php_mysql.dll is very important (at least for me);; not sure about the others.;extension=php_curl.dll;extension=php_gd2.dll;extension=php_gettext.dll;extension=php_mbstring.dll;extension=php_mcrypt.dll;extension=php_mhash.dll;extension=php_mssql.dll;extension=php_mysql.dll ;; very important ;;;extension=php_mysqli.dll;extension=php_openssl.dll;extension=php_pdo.dll;extension=php_soap.dll;extension=php_xsl.dll;extension=php_zip.dll;;;;;; ok, that worked, but i'll change these ;;;;;;;;;; just to match what godaddy has ;;;;;;session.gc_divisor = 1000;session.hash_bits_per_character = 5;session.save_path = "D:\TEMP\PHP";; The rest is from ;; windows.php.net/download;; PHP 5.2.11 Zip file;; php.ini-dist;; everything is default;; except the changes mentioned above;;;;;;;;;;;; WARNING ;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for; development purposes, and *NOT* for production purposes.; For several security-oriented considerations that should be taken; before going online with your site, please consult php.ini-recommended; and http://php.net/manual/en/security.php.;;;;;;;;;;;;;;;;;;;;; Language Options ;;;;;;;;;;;;;;;;;;;;;; Enable the PHP scripting language engine under Apache.engine = On; Enable compatibility mode with Zend Engine 1 (PHP 4.x)zend.ze1_compatibility_mode = Offshort_open_tag = On; Allow ASP-style <% %> tags.asp_tags = Offprecision = 12y2k_compliance = Onoutput_buffering = 4096zlib.output_compression = Off;zlib.output_compression_level = -1implicit_flush = Offunserialize_callback_func=serialize_precision = 100allow_call_time_pass_reference = Onsafe_mode = Offsafe_mode_gid = Offsafe_mode_include_dir =safe_mode_exec_dir =safe_mode_allowed_env_vars = PHP_safe_mode_protected_env_vars = LD_LIBRARY_PATH;open_basedir =disable_functions =disable_classes =; Colors for Syntax Highlighting mode. Anything that's acceptable in; would work.;highlight.string = #DD0000;highlight.comment = #FF9900;highlight.keyword = #007700;highlight.bg = #FFFFFF;highlight.default = #0000BB;highlight.html = #000000expose_php = On;;;;;;;;;;;;;;;;;;;; Resource Limits ;;;;;;;;;;;;;;;;;;;;max_execution_time = 1600 ; Maximum execution time of each script, in secondsmax_input_time = 1600 ; Maximum amount of time each script may spend parsing request data;max_input_nesting_level = 64 ; Maximum input variable nesting levelmemory_limit = 32M ; Maximum amount of memory a script may consume (128MB)error_reporting = E_ALL & ~E_NOTICEdisplay_errors = Ondisplay_startup_errors = Offlog_errors = Onlog_errors_max_len = 1024ignore_repeated_errors = Offignore_repeated_source = Offreport_memleaks = Ontrack_errors = Offerror_log = syslog;;;;;;;;;;;;;;;;;; Data Handling ;;;;;;;;;;;;;;;;;;;;variables_order = "EGPCS"variables_order = "GPCS"register_globals = Offregister_long_arrays = On;register_argc_argv = Onregister_argc_argv = Offauto_globals_jit = Onpost_max_size = 128M; Magic quotes for incoming GET/POST/Cookie data.;magic_quotes_gpc = Onmagic_quotes_gpc = Off; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.magic_quotes_runtime = Off; Use Sybase-style magic quotes (escape ' with '' instead of \').magic_quotes_sybase = Off; Automatically add files before or after any PHP document.auto_prepend_file =auto_append_file =default_mimetype = "text/html";default_charset = "iso-8859-1";;;;;;;;;;;;;;;;;;;;;;;;;; Paths and Directories ;;;;;;;;;;;;;;;;;;;;;;;;;;include_path = ".;C:\php5\pear"doc_root =user_dir =extension_dir = "c:\php5\ext"; Whether or not to enable the dl() function. The dl() function does NOT work; properly in multithreaded servers, such as IIS or Zeus, and is automatically; disabled on them.enable_dl = On; cgi.force_redirect is necessary to provide security running PHP as a CGI under; most web servers. Left undefined, PHP turns this on by default. You can; turn it off here AT YOUR OWN RISK; **You CAN safely turn this off for IIS, in fact, you MUST.**cgi.force_redirect = 0fastcgi.impersonate = 1;;;;;;;;;;;;;;;;;; File Uploads ;;;;;;;;;;;;;;;;;; Whether to allow HTTP file uploads.file_uploads = On; Temporary directory for HTTP uploaded files (will use system default if not; specified).upload_tmp_dir = D:\Temp\php; Maximum allowed size for uploaded files.upload_max_filesize = Link to comment Share on other sites More sharing options...
cool cellphone case Posted June 10, 2011 Author Share Posted June 10, 2011 i solve it by add RewriteBase / to the rewrite htaccess file# URL rewriting module activationRewriteEngine onRewriteCond %{http_host} ^digitalschina.com [NC]RewriteRule ^(.*)$ http://www.digitalschina.com/$1 [L,R=301]RewriteBase /# URL rewriting rules Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now